From: Ilmari Karonen Date: Wed, 6 Dec 2006 06:55:34 +0000 (+0000) Subject: avoid calling wfMsg( 'missingarticle' ) unless needed X-Git-Tag: 1.31.0-rc.0~54980 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=3f3a113117e7ad58475e0e488ebb646acef769d7;p=lhc%2Fweb%2Fwiklou.git avoid calling wfMsg( 'missingarticle' ) unless needed --- diff --git a/includes/DifferenceEngine.php b/includes/DifferenceEngine.php index 682b425130..f66d06e62d 100644 --- a/includes/DifferenceEngine.php +++ b/includes/DifferenceEngine.php @@ -99,10 +99,10 @@ CONTROL; $t = $this->mTitle->getPrefixedText() . " (Diff: {$this->mOldid}, " . "{$this->mNewid})"; - $mtext = wfMsg( 'missingarticle', "$t" ); $wgOut->setArticleFlag( false ); if ( ! $this->loadRevisionData() ) { + $mtext = wfMsg( 'missingarticle', "$t" ); $wgOut->setPagetitle( wfMsg( 'errorpagetitle' ) ); $wgOut->addWikitext( $mtext ); wfProfileOut( $fname );