Skip to content

Commit

Permalink
show organization specific RSS feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
Fasse committed Apr 20, 2024
1 parent 9217b5c commit 052d463
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion adm_program/modules/announcements/announcements.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
// add rss feed to announcements
if ($gSettingsManager->getBool('enable_rss')) {
$page->addRssFile(
ADMIDIO_URL.FOLDER_MODULES.'/announcements/rss_announcements.php',
ADMIDIO_URL.FOLDER_MODULES.'/announcements/rss_announcements.php?organization_short_name=' . $gCurrentOrganization->getValue('org_shortname'),
$gL10n->get('SYS_RSS_FEED_FOR_VAR', array($gCurrentOrganization->getValue('org_longname') . ' - ' . $headline))
);
}
Expand Down
2 changes: 1 addition & 1 deletion adm_program/modules/events/events.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

if ($gSettingsManager->getBool('enable_rss') && (int) $gSettingsManager->get('events_module_enabled') === 1) {
$page->addRssFile(
ADMIDIO_URL.FOLDER_MODULES.'/events/events_rss.php',
ADMIDIO_URL.FOLDER_MODULES.'/events/events_rss.php?organization_short_name=' . $gCurrentOrganization->getValue('org_shortname'),
$gL10n->get('SYS_RSS_FEED_FOR_VAR', array($gCurrentOrganization->getValue('org_longname') . ' - ' . $gL10n->get('SYS_EVENTS')))
);
}
Expand Down
2 changes: 1 addition & 1 deletion adm_program/modules/guestbook/guestbook.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
// add rss feed to guestbook
if ($gSettingsManager->getBool('enable_rss') && (int) $gSettingsManager->get('enable_guestbook_module') === 1) {
$page->addRssFile(
ADMIDIO_URL.FOLDER_MODULES.'/guestbook/rss_guestbook.php',
ADMIDIO_URL.FOLDER_MODULES.'/guestbook/rss_guestbook.php?organization_short_name=' . $gCurrentOrganization->getValue('org_shortname'),
$gL10n->get('SYS_RSS_FEED_FOR_VAR', array($gCurrentOrganization->getValue('org_longname') . ' - ' . $gL10n->get('GBO_GUESTBOOK')))
);
}
Expand Down
2 changes: 1 addition & 1 deletion adm_program/modules/links/links.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

if ($gSettingsManager->getBool('enable_rss')) {
$page->addRssFile(
ADMIDIO_URL. FOLDER_MODULES.'/links/rss_links.php',
ADMIDIO_URL. FOLDER_MODULES.'/links/rss_links.php?organization_short_name=' . $gCurrentOrganization->getValue('org_shortname'),
$gL10n->get('SYS_RSS_FEED_FOR_VAR', array($gCurrentOrganization->getValue('org_longname') . ' - ' . $headline))
);
}
Expand Down
2 changes: 1 addition & 1 deletion adm_program/modules/photos/photos.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
// add rss feed to photos
if ($gSettingsManager->getBool('enable_rss')) {
$page->addRssFile(
ADMIDIO_URL.FOLDER_MODULES.'/photos/rss_photos.php',
ADMIDIO_URL.FOLDER_MODULES.'/photos/rss_photos.php?organization_short_name=' . $gCurrentOrganization->getValue('org_shortname'),
$gL10n->get('SYS_RSS_FEED_FOR_VAR', array($gCurrentOrganization->getValue('org_longname') . ' - ' . $gL10n->get('SYS_PHOTO_ALBUMS')))
);
}
Expand Down

0 comments on commit 052d463

Please sign in to comment.