summaryrefslogtreecommitdiff
path: root/lib/action.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-15 20:27:33 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-15 20:27:33 +0000
commit443e4a48c7b778dea499e88df14ba1b18ea533db (patch)
tree72da19f88105a562e27eae711ef1f5498fbef02a /lib/action.php
parent62ed9d3e7314d23866d009ff17b4bee6f5929e8e (diff)
Fix site notice
Diffstat (limited to 'lib/action.php')
-rw-r--r--lib/action.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/action.php b/lib/action.php
index fd9d276ac..097b0d92e 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -265,14 +265,16 @@ class Action extends HTMLOutputter // lawsuit
// Revist. Should probably do an hAtom pattern here
function showSiteNotice()
{
- $this->elementStart('dl', array('id' => 'site_notice',
- 'class' => 'system_notice'));
- $this->element('dt', null, _('Site notice'));
- $this->elementStart('dd', null);
- // Output a bunch of paragraphs here
- $this->elementEnd('dd');
- }
-
+ $text = common_config('site', 'notice');
+ if ($text) {
+ $this->elementStart('dl', array('id' => 'site_notice',
+ 'class' => 'system_notice'));
+ $this->element('dt', null, _('Site notice'));
+ $this->element('dd', null, $text);
+ $this->elementEnd('dl');
+ }
+ }
+
// MAY overload if no notice form needed... or direct message box????
function showNoticeForm()