(bug 13583) No "poweredby" in Modern skin
authorRiver Tarnell <river@users.mediawiki.org>
Wed, 30 Apr 2008 09:58:18 +0000 (09:58 +0000)
committerRiver Tarnell <river@users.mediawiki.org>
Wed, 30 Apr 2008 09:58:18 +0000 (09:58 +0000)
RELEASE-NOTES
skins/Modern.php

index bed9d16..c41d10a 100644 (file)
@@ -226,6 +226,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 11659) Urldecode image names in galleries
 * (bug 13168) accessibility links in Modern skin link to wrong anchor id
 * (bug 13185) No line break after 'subpages' class in Modern skin
+* (bug 13583) No "poweredby" in Modern skin
 
 === API changes in 1.13 ===
 
index a9cf183..9377cbf 100644 (file)
@@ -15,6 +15,15 @@ if( !defined( 'MEDIAWIKI' ) )
  * @addtogroup Skins
  */
 class SkinModern extends SkinTemplate {
+       /*
+        * We don't like the default getPoweredBy, the icon clashes with the 
+        * skin L&F.
+        */
+       function getPoweredBy() {
+       global  $wgVersion;
+               return "<div class='mw_poweredby'>Powered by MediaWiki $wgVersion</div>";
+       }
+
        function initPage( &$out ) {
                SkinTemplate::initPage( $out );
                $this->skinname  = 'modern';
@@ -276,6 +285,7 @@ class ModernTemplate extends QuickTemplate {
                }
 ?>
                        </ul>
+               <?php echo $this->html("poweredbyico"); ?>
        </div>
 
        <?php $this->html('bottomscripts'); /* JS call to runBodyOnloadHook */ ?>