Another thing that's been bothering me, skins shouldn't have to access $wgSitenotice...
authorDaniel Friesen <dantman@users.mediawiki.org>
Mon, 5 Sep 2011 19:30:11 +0000 (19:30 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Mon, 5 Sep 2011 19:30:11 +0000 (19:30 +0000)
includes/SkinTemplate.php

index f66eddf..e0b7eb0 100644 (file)
@@ -136,7 +136,7 @@ class SkinTemplate extends Skin {
                global $wgScript, $wgStylePath;
                global $wgMimeType, $wgJsMimeType;
                global $wgXhtmlDefaultNamespace, $wgXhtmlNamespaces, $wgHtml5Version;
-               global $wgDisableCounters, $wgLogo, $wgHideInterlanguageLinks;
+               global $wgDisableCounters, $wgSitename, $wgLogo, $wgHideInterlanguageLinks;
                global $wgMaxCredits, $wgShowCreditsIfMax;
                global $wgPageShowWatchingUsers;
                global $wgUseTrackbacks, $wgUseSiteJs, $wgDebugComments;
@@ -291,6 +291,7 @@ class SkinTemplate extends Skin {
                $tpl->setRef( 'scriptpath', $wgScriptPath );
                $tpl->setRef( 'serverurl', $wgServer );
                $tpl->setRef( 'logopath', $wgLogo );
+               $tpl->setRef( 'sitename', $wgSitename );
 
                $contentlang = $wgContLang->getCode();
                $contentdir  = $wgContLang->getDir();