Index: trunk/extensions/LanguageSelector/LanguageSelector.php |
— | — | @@ -167,6 +167,11 @@ |
168 | 168 | } |
169 | 169 | } |
170 | 170 | |
| 171 | + // Unstub for method_exists call to work |
| 172 | + if ( !StubObject::isRealObject( $wgOut ) ) { |
| 173 | + $wgOut->_unstub(); |
| 174 | + } |
| 175 | + |
171 | 176 | if ( method_exists( $wgOut, 'addScriptClass' ) ) { |
172 | 177 | $wgOut->addScriptClass( 'LanguageSelector' ); |
173 | 178 | } else { |