aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-09-26 01:43:41 +0000
committerrvelices <rv-github@modusoptimus.com>2008-09-26 01:43:41 +0000
commitda7b79b47b1ff1ab721f6277c722175ca7b8bdbd (patch)
tree13a15a4228dd52217c2e7d6644923ef52d0a6433
parentc9efc7e0bf4db8a8e8381afdfa5a182300e25ae8 (diff)
- 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
Diffstat (limited to '')
-rw-r--r--feed.php4
-rw-r--r--include/config_default.inc.php3
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 <author> element
+$conf['rss_feed_author'] = 'Piwigo notifier';
+
// +-----------------------------------------------------------------------+
// | Set admin layout |
// +-----------------------------------------------------------------------+