Skip to content

Commit

Permalink
use new GH url for notifications.json (#4109)
Browse files Browse the repository at this point in the history
  • Loading branch information
crossan007 authored and DawoudIO committed Mar 10, 2018
1 parent 3f5ffe0 commit 4848834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ChurchCRM/Service/NotificationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static function updateNotifications()
*
*/
try {
$TempNotificaions = json_decode(file_get_contents(SystemConfig::getValue("sCloudURL")."notifications.json" ));
$TempNotificaions = json_decode(file_get_contents(SystemConfig::getValue("sNotificationsURL")));
if (isset($TempNotificaions->TTL) ) {
$_SESSION['SystemNotifications'] = $TempNotificaions;
$_SESSION['SystemNotifications']->expires = new \DateTime();
Expand Down
1 change: 1 addition & 0 deletions src/ChurchCRM/dto/SystemConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ private static function buildConfigs()
"bEnabledCalendar" => new ConfigItem(2054, "bEnabledCalendar", "boolean", "1", gettext("Enable Calendar menu.")),
"bEnabledFundraiser" => new ConfigItem(2055, "bEnabledFundraiser", "boolean", "1", gettext("Enable Fundraiser menu.")),
"bEnabledEmail" => new ConfigItem(2056, "bEnabledEmail", "boolean", "1", gettext("Enable Email menu.")),
"sNotificationsURL" => new ConfigItem(2057, "sNotificationsURL", "text", "https://raw.githubusercontent.com/ChurchCRM/CRM/Notifications/notifications.json", gettext("ChurchCRM Central Notifications URL"))
);
}

Expand Down

0 comments on commit 4848834

Please sign in to comment.