From b08faa26e551c1ef1ffca50e77bc2722d5dd17e1 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sun, 19 Sep 2010 16:30:21 -0400 Subject: [PATCH] allow setting tilesperrow via the api in this view also. --- ansel/lib/View/List.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansel/lib/View/List.php b/ansel/lib/View/List.php index 665af761f..c351faabf 100644 --- a/ansel/lib/View/List.php +++ b/ansel/lib/View/List.php @@ -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'; -- 2.11.0