Changeset 3115
- Timestamp:
- 04/13/08 09:35:35 (3 months ago)
- Files:
-
- trunk/Solar/App/Bookmarks.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Solar/App/Bookmarks.php
r3038 r3115 377 377 // must be the item owner to edit it 378 378 $item = $this->_bookmarks->fetchOneById($id, array( 379 'eager' => array('tag gings', 'tags'),379 'eager' => array('tags'), 380 380 )); 381 381 … … 546 546 'paging' => $this->_query('paging', 10), 547 547 'page' => $this->_query('page', 1), 548 'eager' => array('taggings', 'tags'), 548 'eager' => array('tags'), 549 'count_pages' => true, 549 550 ); 550 551 551 552 // get the list of bookmarks 552 553 $this->list = $this->_bookmarks->fetchAllByTags($tag_list, $params); 553 554 // get the total pages and row-count555 $total = $this->_bookmarks->countPagesByTags($tag_list, $params);556 554 557 555 // flash forward the backlink in case we go to edit, but only if this … … 565 563 566 564 // assign the list of tags in use 567 $this->tags_in_use = $this->_tags->fetchAllWithCount(array(565 $this->tags_in_use = $this->_tags->fetchAllWithCount(array( 568 566 'order' => 'tags.name' 569 567 )); 570 568 571 569 // assign everything else for the view 570 $total = $this->list->getPagerInfo(); 571 572 572 $this->count = $total['count']; 573 573 $this->pages = $total['pages']; … … 614 614 'paging' => $this->_query('paging', 10), 615 615 'page' => $this->_query('page', 1), 616 'eager' => array('taggings', 'tags'), 616 'eager' => array('tags'), 617 'count_pages' => true, 617 618 ); 618 619 … … 620 621 if ($tag_list) { 621 622 $this->list = $this->_bookmarks->fetchAllByTags($tag_list, $params); 622 $total = $this->_bookmarks->countPagesByTags($tag_list, $params);623 623 } else { 624 624 $this->list = $this->_bookmarks->fetchAll($params); 625 $total = $this->_bookmarks->countPages($params);626 625 } 627 626 … … 641 640 642 641 // assign remaining view vars 642 $total = $this->list->getPagerInfo(); 643 643 $this->count = $total['count']; 644 644 $this->pages = $total['pages'];
