Fix remainder of the accidental ->empty() calls I used when converting wfEmptyMsg...
authorDaniel Friesen <dantman@users.mediawiki.org>
Fri, 14 Jan 2011 11:36:37 +0000 (11:36 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Fri, 14 Jan 2011 11:36:37 +0000 (11:36 +0000)
includes/EditPage.php

index 72d87ab..9d0f4e9 100644 (file)
@@ -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() ) ) {