From da7b79b47b1ff1ab721f6277c722175ca7b8bdbd Mon Sep 17 00:00:00 2001 From: rvelices Date: Fri, 26 Sep 2008 01:43:41 +0000 Subject: - the author in RSS feed can be configured in config_default.inc.php git-svn-id: http://piwigo.org/svn/trunk@2595 68402e56-0260-453c-a942-63ccdbb3a9ee --- feed.php | 4 ++-- include/config_default.inc.php | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/feed.php b/feed.php index 5de955975..7aa85ff6b 100644 --- a/feed.php +++ b/feed.php @@ -136,7 +136,7 @@ if (!$image_only) $item->descriptionHtmlSyndicated = true; $item->date = mysqldt_to_ts($dbnow); - $item->author = 'Piwigo notifier'; + $item->author = $conf['rss_feed_author']; $item->guid= sprintf('%s', $dbnow);; $rss->addItem($item); @@ -188,7 +188,7 @@ foreach($dates as $date_detail) $item->descriptionHtmlSyndicated = true; $item->date = mysqldt_to_ts($date); - $item->author = 'Piwigo notifier'; + $item->author = $conf['rss_feed_author']; $item->guid= sprintf('%s', 'pics-'.$date);; $rss->addItem($item); diff --git a/include/config_default.inc.php b/include/config_default.inc.php index f89d0a54a..7a145709e 100644 --- a/include/config_default.inc.php +++ b/include/config_default.inc.php @@ -613,6 +613,9 @@ $conf['recent_post_dates'] = array( 'NBM' => array('max_dates' => 7, 'max_elements' => 3, 'max_cats' => 9) ); +// the author shown in the RSS feed element +$conf['rss_feed_author'] = 'Piwigo notifier'; + // +-----------------------------------------------------------------------+ // | Set admin layout | // +-----------------------------------------------------------------------+ -- cgit v1.2.3