allow setting tilesperrow via the api in this view also.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 19 Sep 2010 20:30:21 +0000 (16:30 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 22 Sep 2010 20:18:40 +0000 (16:18 -0400)
ansel/lib/View/List.php

index 665af76..c351faa 100644 (file)
@@ -242,7 +242,7 @@ class Ansel_View_List extends Ansel_View_Base
                 $style = Ansel::getStyleDefinition($this->_params['style']);
             }
             $count = 0;
-            $width = round(100 / $prefs->getValue('tilesperrow'));
+            $width = round(100 / ($this->tilesperrow ? $this->tilesperrow : $prefs->getValue('tilesperrow')));
 
             Horde::startBuffer();
             include ANSEL_TEMPLATES . '/view/list.inc';