Index: trunk/extensions/AdminLinks/AdminLinks_body.php |
— | — | @@ -77,7 +77,10 @@ |
78 | 78 | $admin_links_tree = $this->createInitialTree(); |
79 | 79 | wfRunHooks( 'AdminLinks', array( &$admin_links_tree ) ); |
80 | 80 | 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 | + } |
82 | 85 | $wgOut->addHTML( $admin_links_tree->toString() ); |
83 | 86 | } |
84 | 87 | |