From: Daniel Friesen Date: Fri, 14 Jan 2011 11:36:37 +0000 (+0000) Subject: Fix remainder of the accidental ->empty() calls I used when converting wfEmptyMsg... X-Git-Tag: 1.31.0-rc.0~32546 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=5158134a6d3ec2ddb18329c00a7a63bcb44667b7;p=lhc%2Fweb%2Fwiklou.git Fix remainder of the accidental ->empty() calls I used when converting wfEmptyMsg into Message::exists() calls. --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 72d87ab97e..9d0f4e9a0a 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -391,7 +391,7 @@ class EditPage { # Optional notices on a per-namespace and per-page basis $editnotice_ns = 'editnotice-'.$this->mTitle->getNamespace(); $editnotice_ns_message = wfMessage( $editnotice_ns )->inContentLanguage(); - if ( !$editnotice_ns_message->empty() ) { + if ( $editnotice_ns_message->exists() ) { $wgOut->addWikiText( $editnotice_ns_msg->plain() ); } if ( MWNamespace::hasSubpages( $this->mTitle->getNamespace() ) ) {