Changeset 1650 for trunk/gregarius/cls
- Timestamp:
- 01/02/07 18:07:39 (22 months ago)
- Files:
-
- 1 modified
-
trunk/gregarius/cls/items.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/cls/items.php
r1648 r1650 516 516 var $itemsPerPage = 0; 517 517 var $numItems = 0; 518 function PaginatedItemList( ) {518 function PaginatedItemList($itemsPerPage=null) { 519 519 parent::ItemList(); 520 520 if (isset($_REQUEST['page'])) { … … 523 523 $this -> page = 0; 524 524 } 525 526 $this -> itemsPerPage = getConfig('rss.output.frontpage.numitems'); 525 if ($itemsPerPage === null) { 526 $this -> itemsPerPage = getConfig('rss.output.frontpage.numitems'); 527 } else { 528 $this -> itemsPerPage = $itemsPerPage; 529 } 527 530 } 528 531 function populate($sqlWhere, $sqlOrder="", $startItem = 0, $itemCount = -1, $hint = ITEM_SORT_HINT_MIXED, $includeDeprecated = false) { … … 537 540 . $this -> _sqlActualWhere; 538 541 list($this -> numItems) = rss_fetch_row(rss_query($sql)); 539 $this -> navigation = new ItemListNavigation($this); 542 543 if ($this -> numItems >= $this -> itemsPerPage) { 544 $this -> navigation = new ItemListNavigation($this); 545 } 540 546 } 541 547 }
