]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix site notice
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 15 Jan 2009 20:27:33 +0000 (20:27 +0000)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 15 Jan 2009 20:27:33 +0000 (20:27 +0000)
lib/action.php

index fd9d276ac656535c34573888ec30c36ba2f1b57e..097b0d92e7c3d481d6cd8ba417e0a65579028f97 100644 (file)
@@ -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()