Index: trunk/extensions/CentralNotice/SpecialNoticeText.php |
— | — | @@ -28,6 +28,7 @@ |
29 | 29 | array( $this, 'getHtmlNotice' ), |
30 | 30 | $templateNames ); |
31 | 31 | $weights = array_values( $templates ); |
| 32 | + |
32 | 33 | return |
33 | 34 | $this->getScriptFunctions() . |
34 | 35 | $this->getToggleScripts() . |
— | — | @@ -35,7 +36,8 @@ |
36 | 37 | Xml::encodeJsVar( $templateTexts ) . |
37 | 38 | "," . |
38 | 39 | Xml::encodeJsVar( $weights ) . |
39 | | - ");\n"; |
| 40 | + ");\n" . |
| 41 | + "if (wgUserName == null && wgNotice != '') wgNotice='<div class=\"anonnotice\">'+wgNotice+'</div>';\n"; |
40 | 42 | } |
41 | 43 | |
42 | 44 | function getHtmlNotice( $noticeName ) { |