Changeset 1520 for trunk/gregarius

Show
Ignore:
Timestamp:
08/03/06 16:23:16 (2 years ago)
Author:
cfriesen
Message:

A config option to limit the number of search items.

Location:
trunk/gregarius
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/cls/search.php

    r1436 r1520  
    201201 
    202202 
    203         parent::populate($qWhere,$qOrder,0,-1,ITEM_SORT_HINT_MIXED,true); 
     203        parent::populate($qWhere,$qOrder,0,getConfig("rss.search.maxitems"),ITEM_SORT_HINT_MIXED,true); 
    204204 
    205205        $this -> filterItems(); 
  • trunk/gregarius/schema.php

    r1518 r1520  
    471471        "rss.config.ajaxbatchsize"          => array('3','3','num','Sets the number of feeds in a batch when using the ajax updater. Remember to set rss.config.serverpush to false.',NULL), 
    472472        "rss.config.defaultdashboard"           => array('true','true','boolean','If the first page seen when entering the admin section should be the dashboard',NULL), 
    473         "rss.config.deadthreshhold" =>  array('24', '24', 'num', 'Sets the threshold for when a feed is marked as dead, in hours', NULL) 
     473        "rss.config.deadthreshhold" =>  array('24', '24', 'num', 'Sets the threshold for when a feed is marked as dead, in hours', NULL), 
     474        "rss.search.maxitems" => array(500, 500, 'num', 'Sets the maximum number of items returned on a search', NULL) 
    474475    ); 
    475476