r43284 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43283‎ | r43284 | r43285 >
Date:21:54, 7 November 2008
Author:brion
Status:old
Tags:
Comment:
wrap centralnotice in <div class="anonnotice"> for anon users, in case we want style tweaks
Modified paths:
  • /trunk/extensions/CentralNotice/SpecialNoticeText.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/SpecialNoticeText.php
@@ -28,6 +28,7 @@
2929 array( $this, 'getHtmlNotice' ),
3030 $templateNames );
3131 $weights = array_values( $templates );
 32+
3233 return
3334 $this->getScriptFunctions() .
3435 $this->getToggleScripts() .
@@ -35,7 +36,8 @@
3637 Xml::encodeJsVar( $templateTexts ) .
3738 "," .
3839 Xml::encodeJsVar( $weights ) .
39 - ");\n";
 40+ ");\n" .
 41+ "if (wgUserName == null && wgNotice != '') wgNotice='<div class=\"anonnotice\">'+wgNotice+'</div>';\n";
4042 }
4143
4244 function getHtmlNotice( $noticeName ) {

Status & tagging log