BUGIFX: Use limit() instead of deprecated getRange() in AssetAdmin.

This commit is contained in:
Sam Minnee 2012-03-09 13:53:28 +13:00
parent 439b9c1f29
commit 4c7f3e0836

View File

@ -553,7 +553,7 @@ JS
// If a search is in progress, don't show the path // If a search is in progress, don't show the path
if($this->request->requestVar('q')) { if($this->request->requestVar('q')) {
$items = $items->getRange(0, 1); $items = $items->limit(1);
$items->push(new ArrayData(array( $items->push(new ArrayData(array(
'Title' => _t('LeftAndMain.SearchResults', 'Search Results'), 'Title' => _t('LeftAndMain.SearchResults', 'Search Results'),
'Link' => Controller::join_links($this->Link(), '?' . http_build_query(array('q' => $this->request->requestVar('q')))) 'Link' => Controller::join_links($this->Link(), '?' . http_build_query(array('q' => $this->request->requestVar('q'))))