Skip to content

Commit

Permalink
Fixes listing of "All" categories (#4937)
Browse files Browse the repository at this point in the history
For issue description please see #4937

This first commit is just a kludge (or is it a nice hack?) equating the
value of option for "All" categories (-1) to the really big int,
2147483647 (the biggest representable in 32bit PHP compiles)
  • Loading branch information
smz committed Dec 19, 2014
1 parent c79aee9 commit d752324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/legacy/view/categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function display($tpl = null)
// Escape strings for HTML output
$this->pageclass_sfx = htmlspecialchars($params->get('pageclass_sfx'));

$this->maxLevelcat = $params->get('maxLevelcat', -1);
$this->maxLevelcat = $params->get('maxLevelcat', -1) < 0 ? 2147483647 : $params->get('maxLevelcat');
$this->params = &$params;
$this->parent = &$parent;
$this->items = &$items;
Expand Down

0 comments on commit d752324

Please sign in to comment.