From: Alexandre Emsenhuber Date: Wed, 5 Oct 2011 19:59:39 +0000 (+0000) Subject: Fix for r99038: this was in the wrong part of the if statement X-Git-Tag: 1.31.0-rc.0~27250 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=a2b914d852869cc12c9fb0d1af0c39030dbc3bf5;p=lhc%2Fweb%2Fwiklou.git Fix for r99038: this was in the wrong part of the if statement --- diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index b03caffc58..c08f638442 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -262,6 +262,11 @@ CONTROL; # a diff between a version V and its previous version V' AND the version V # is the first version of that article. In that case, V' does not exist. if ( $this->mOldRev === false ) { + $wgOut->setPageTitle( $this->mNewPage->getPrefixedText() ); + $wgOut->setSubtitle( wfMsgExt( 'difference', array( 'parseinline' ) ) ); + $samePage = true; + $oldHeader = ''; + } else { wfRunHooks( 'DiffViewHeader', array( $this, $this->mOldRev, $this->mNewRev ) ); $sk = $wgUser->getSkin(); @@ -269,11 +274,6 @@ CONTROL; $sk->suppressQuickbar(); } - $wgOut->setPageTitle( $this->mNewPage->getPrefixedText() ); - $wgOut->setSubtitle( wfMsgExt( 'difference', array( 'parseinline' ) ) ); - $samePage = true; - $oldHeader = ''; - } else { if ( $this->mNewPage->equals( $this->mOldPage ) ) { $wgOut->setPageTitle( $this->mNewPage->getPrefixedText() ); $wgOut->setSubtitle( wfMsgExt( 'difference', array( 'parseinline' ) ) );