initialize rssRecentChanges flag to 0

This commit is contained in:
Phy 2020-03-09 17:20:19 -04:00
parent 7b299f22af
commit 8de6bd9892
No known key found for this signature in database
GPG Key ID: D475AA55A8144239
1 changed files with 2 additions and 2 deletions

View File

@ -466,8 +466,8 @@ function rss_buildItems(&$rss, &$data, $opt) {
*/
function rssRecentChanges($opt) {
global $conf;
//$flags = RECENTS_SKIP_DELETED;
if(!$conf['rss_show_deleted']) $flags = RECENTS_SKIP_DELETED;
$flags = 0;
if(!$conf['rss_show_deleted']) $flags += RECENTS_SKIP_DELETED;
if(!$opt['show_minor']) $flags += RECENTS_SKIP_MINORS;
if($opt['content_type'] == 'media' && $conf['mediarevisions']) $flags += RECENTS_MEDIA_CHANGES;
if($opt['content_type'] == 'both' && $conf['mediarevisions']) $flags += RECENTS_MEDIA_PAGES_MIXED;