Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
Ok, this doesn't work. Limit is ignored! Ignore this update, please r…
Browse files Browse the repository at this point in the history
…evert to the previous version of NewsExtension.
  • Loading branch information
Firesphere committed Feb 21, 2013
1 parent b382461 commit 71505e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/extensions/NewsExtension.php
Expand Up @@ -26,6 +26,7 @@ public function NewsArchive($limit = null) {
$news = News::get()->filter(array('Live' => 1));
}
if ($limit) {
// crap, limit doesn't work like this? :(
$news->limit($limit);
} else
if($news->count() == 0){
Expand Down

0 comments on commit 71505e7

Please sign in to comment.