From 7af20970abc7b4ba9d8094a25e53bd790dc5f280 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Sun, 23 Dec 2007 02:17:49 +0000 Subject: [PATCH] Add HTML ID's mw-read-only-warning and mw-anon-edit-warning to warnings when editing to allow CSS styling. --- RELEASE-NOTES | 4 +++- includes/EditPage.php | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 644ca5140f..93367e6aa9 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -106,7 +106,9 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Added link to the old title in Special:Movepage * On Special:Movepage, errors are now more noticeable. * It is now possible to change rights on other local wikis without the MakeSysop - extension + extension +* Add HTML ID's mw-read-only-warning and mw-anon-edit-warning to warnings when + editing to allow CSS styling. === Bug fixes in 1.12 === diff --git a/includes/EditPage.php b/includes/EditPage.php index a3905982e0..e93bae660a 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1056,9 +1056,9 @@ class EditPage { } if( wfReadOnly() ) { - $wgOut->addWikiText( wfMsg( 'readonlywarning' ) ); + $wgOut->addWikiText( '
'.wfMsg( 'readonlywarning' ).'
' ); } elseif( $wgUser->isAnon() && $this->formtype != 'preview' ) { - $wgOut->addWikiText( wfMsg( 'anoneditwarning' ) ); + $wgOut->addWikiText( '
'.wfMsg( 'anoneditwarning' ).'
' ); } else { if( $this->isCssJsSubpage && $this->formtype != 'preview' ) { # Check the skin exists -- 2.20.1