From 1d08dc51ea18a7f125d04d09fcc42c8c287b7f17 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 29 Jun 2006 21:49:19 +0000 Subject: [PATCH] r881: Make the syndication items number a setting --- includes/settings.php | 1 + syndicate.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/settings.php b/includes/settings.php index 74bf6d6..2e50de0 100755 --- a/includes/settings.php +++ b/includes/settings.php @@ -48,6 +48,7 @@ $config['trackertitle'] = array('general', 'trackertitle', 'textbox', '', fals $config['trackerurl'] = array('general', 'trackerurl', 'textbox', '', false, $lang->string('Tracker Base URL'), $lang->string('The base URL of the tracker. This is used when creating external links to the tracker. Be sure that this does not end in a trailing slash ("/").
Example: http://www.iris-studios.com/bugs')); $config['dateformat'] = array('general', 'dateformat', 'textbox', 'F j, Y h:i:s A', false, $lang->string('Date Format'), $lang->string('Set the date format used for bug report and comment information. This is based on PHP\'s date() function.')); $config['defaultlanguage'] = array('general', 'defaultlanguage', '" . construct_option_select(\'setting[defaultlanguage]\', $bugsys->datastore[\'language\'], $bugsys->options[\'defaultlanguage\'], \'languageid\', \'title\') . "', 1, false, $lang->string('Default Language'), $lang->string('You can set the default language that all new users (and guests) will use.')); +$config['syndicateditems'] = array('general', 'syndicateditems', 'textbox', 10, false, $lang->string('Number of Syndicated Items'), $lang->string('The number of bugs to be syndicated at any one time by the Atom XML feed.')); // ################################################################### diff --git a/syndicate.php b/syndicate.php index cb66861..5340e15 100644 --- a/syndicate.php +++ b/syndicate.php @@ -44,7 +44,7 @@ $bugs_fetch = $db->query(" WHERE productid IN (" . fetch_on_bits('canviewbugs', fetch_guest_user()) . ") AND (!hidden OR (hidden AND productid IN (" . fetch_on_bits('canviewhidden', fetch_guest_user()) . "))) ORDER BY " . (can_perform('canviewhidden', 0, fetch_guest_user()) ? "lastposttime" : "hiddenlastposttime") . " DESC - LIMIT 10" // #*# let this be a setting + LIMIT " . $bugsys->options['syndicateditems'] ); while ($bug = $db->fetch_array($bugs_fetch)) { -- 2.22.5