From 2bbafda834138b9b2234691d796e33b43e32c542 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Tue, 10 Mar 2009 18:57:06 +0000 Subject: [PATCH] remove per-page editnotice functionality, message files and message cache are supposed to be global data. --- includes/EditPage.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index c2bd97dd75..b50055ae5a 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -426,7 +426,6 @@ class EditPage { # Optional notices on a per-namespace and per-page basis $editnotice_ns = 'editnotice-'.$this->mTitle->getNamespace(); - $editnotice_page = $editnotice_ns.'-'.$this->mTitle->getDBkey(); if ( !wfEmptyMsg( $editnotice_ns, wfMsgForContent( $editnotice_ns ) ) ) { $wgOut->addWikiText( wfMsgForContent( $editnotice_ns ) ); } @@ -439,8 +438,6 @@ class EditPage { $wgOut->addWikiText( wfMsgForContent( $editnotice_base ) ); } } - } else if ( !wfEmptyMsg( $editnotice_page, wfMsgForContent( $editnotice_page ) ) ) { - $wgOut->addWikiText( wfMsgForContent( $editnotice_page ) ); } # Attempt submission here. This will check for edit conflicts, -- 2.20.1