From: Michael J. Rubinsky Date: Sun, 19 Sep 2010 20:30:21 +0000 (-0400) Subject: allow setting tilesperrow via the api in this view also. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b08faa26e551c1ef1ffca50e77bc2722d5dd17e1;p=horde.git allow setting tilesperrow via the api in this view also. --- 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';