r23554 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23553‎ | r23554 | r23555 >
Date:13:53, 29 June 2007
Author:robchurch
Status:old
Tags:
Comment:
Fix r23553
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -783,9 +783,9 @@
784784 // Pages containing custom CSS or JavaScript get special treatment
785785 if( $this->mTitle->isCssOrJsPage() || $this->mTitle->isCssJsSubpage() ) {
786786 $wgOut->addHtml( wfMsgExt( 'clearyourcache', 'parse' ) );
787 -
 787+
788788 // 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 ) ) ) {
790790 // Wrap the whole lot in a <pre> and don't parse
791791 preg_match( '!\.(css|js)$!u', $this->mTitle->getText(), $m );
792792 $wgOut->addHtml( "<pre class=\"mw-code mw-{$m[1]}\" dir=\"ltr\">\n" );

Follow-up revisions

RevisionCommit summaryAuthorDate
r23555Update for r23553, r23554robchurch13:57, 29 June 2007
r23581Merged revisions 23406-23580 via svnmerge from...david04:50, 30 June 2007

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r23553Hook callbacks for 'ShowRawCssJs' should do their own output, if so desired; ...robchurch13:52, 29 June 2007

Status & tagging log