From 443e4a48c7b778dea499e88df14ba1b18ea533db Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 15 Jan 2009 20:27:33 +0000 Subject: Fix site notice --- lib/action.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'lib') 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() -- cgit v1.2.3-54-g00ecf