r54724 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54723‎ | r54724 | r54725 >
Date:15:09, 10 August 2009
Author:nikerabbit
Status:deferred
Tags:
Comment:
addScriptClass was not working
Modified paths:
  • /trunk/extensions/LanguageSelector/LanguageSelector.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LanguageSelector/LanguageSelector.php
@@ -167,6 +167,11 @@
168168 }
169169 }
170170
 171+ // Unstub for method_exists call to work
 172+ if ( !StubObject::isRealObject( $wgOut ) ) {
 173+ $wgOut->_unstub();
 174+ }
 175+
171176 if ( method_exists( $wgOut, 'addScriptClass' ) ) {
172177 $wgOut->addScriptClass( 'LanguageSelector' );
173178 } else {

Status & tagging log