r85055 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85054‎ | r85055 | r85056 >
Date:03:01, 31 March 2011
Author:yaron
Status:deferred
Tags:
Comment:
Follow-up to r83789 - added backward-compatibility to $wgOut->addModuleStyles() call, for MW < 1.18
Modified paths:
  • /trunk/extensions/AdminLinks/AdminLinks_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AdminLinks/AdminLinks_body.php
@@ -77,7 +77,10 @@
7878 $admin_links_tree = $this->createInitialTree();
7979 wfRunHooks( 'AdminLinks', array( &$admin_links_tree ) );
8080 global $wgOut;
81 - $wgOut->addModuleStyles( 'mediawiki.special' );
 81+ if ( method_exists( $wgOut, 'addModuleStyles' ) &&
 82+ !is_null( $wgOut->getResourceLoader()->getModule( 'mediawiki.special' ) ) ) {
 83+ $wgOut->addModuleStyles( 'mediawiki.special' );
 84+ }
8285 $wgOut->addHTML( $admin_links_tree->toString() );
8386 }
8487

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r83789Spin out all the CSS used on special pages into their own mediawiki.special m...happy-melon22:42, 12 March 2011

Status & tagging log