Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit a53bdb5

Browse files
committed
Get announcements directly by calling the utils method
1 parent 9e4e4c7 commit a53bdb5

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"php": ">=5.4",
1515
"roave/security-advisories": "dev-master",
1616
"simplesamlphp/composer-module-installer": "^1.1.5",
17-
"simplesamlphp/simplesamlphp": "^1.14.10"
17+
"simplesamlphp/simplesamlphp": "^1.14.10",
18+
"silinternational/ssp-utilities": "^1.0"
1819
}
1920
}

themes/material/common-announcement.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?php
2-
$announcementHtml = $this->configuration->getValue('announcement');
2+
3+
use Sil\SspUtils\AnnouncementUtils;
4+
5+
$announcementHtml = AnnouncementUtils::getAnnouncement();
36

47
if (! empty($announcementHtml)) {
58
?>

0 commit comments

Comments
 (0)