Index: trunk/extensions/ReplaceText/SpecialReplaceText.php |
— | — | @@ -23,7 +23,9 @@ |
24 | 24 | |
25 | 25 | $this->user = $wgUser; |
26 | 26 | $this->setHeaders(); |
27 | | - $wgOut->addModuleStyles( 'mediawiki.special' ); |
| 27 | + if ( method_exists( $wgOut, 'addModuleStyles' ) ) { |
| 28 | + $wgOut->addModuleStyles( 'mediawiki.special' ); |
| 29 | + } |
28 | 30 | $this->doSpecialReplaceText(); |
29 | 31 | } |
30 | 32 | |