From: Niklas Laxström Date: Thu, 2 Jul 2009 12:32:28 +0000 (+0000) Subject: Check for wfEmptyMsg too, since message cache checks messages set to - in files,... X-Git-Tag: 1.31.0-rc.0~41133 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=42ef3a283d84578f2517845e790edead60c5d31d;p=lhc%2Fweb%2Fwiklou.git Check for wfEmptyMsg too, since message cache checks messages set to - in files, trying to get from namespace, and returns non-existing message instead --- diff --git a/includes/EditPage.php b/includes/EditPage.php index dd934d8e1c..8fbbdb187a 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -657,6 +657,7 @@ class EditPage { } } + // FIXME: unused variable? $this->oldid = $request->getInt( 'oldid' ); $this->live = $request->getCheck( 'live' ); @@ -1708,7 +1709,7 @@ END // so should remain short! wfRunHooks( 'EditPageTosSummary', array( $this->mTitle, &$msg ) ); $text = wfMsg( $msg ); - if( $text != '-' ) { + if( !wfEmptyMsg( $msg, $text ) && $text !== '-' ) { global $wgOut; $wgOut->addHTML( '
' ); $wgOut->addWikiMsgArray( $msg, array() );