Index: trunk/phase3/includes/Article.php |
— | — | @@ -783,9 +783,9 @@ |
784 | 784 | // Pages containing custom CSS or JavaScript get special treatment |
785 | 785 | if( $this->mTitle->isCssOrJsPage() || $this->mTitle->isCssJsSubpage() ) { |
786 | 786 | $wgOut->addHtml( wfMsgExt( 'clearyourcache', 'parse' ) ); |
787 | | - |
| 787 | + |
788 | 788 | // Give hooks a chance to customise the output |
789 | | - if( wfRunHooks( 'ShowRawCssJs', array( $text, $this->mTitle, $wgOut ) ) ) { |
| 789 | + if( wfRunHooks( 'ShowRawCssJs', array( $this->mContent, $this->mTitle, $wgOut ) ) ) { |
790 | 790 | // Wrap the whole lot in a <pre> and don't parse |
791 | 791 | preg_match( '!\.(css|js)$!u', $this->mTitle->getText(), $m ); |
792 | 792 | $wgOut->addHtml( "<pre class=\"mw-code mw-{$m[1]}\" dir=\"ltr\">\n" ); |