projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cde30c5
)
allow setting tilesperrow via the api in this view also.
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Sun, 19 Sep 2010 20:30:21 +0000
(16:30 -0400)
committer
Michael J. Rubinsky
<mrubinsk@horde.org>
Wed, 22 Sep 2010 20:18:40 +0000
(16:18 -0400)
ansel/lib/View/List.php
patch
|
blob
|
history
diff --git
a/ansel/lib/View/List.php
b/ansel/lib/View/List.php
index
665af76
..
c351faa
100644
(file)
--- 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';