aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 |
// +-----------------------------------------------------------------------+