From: Aryeh Gregor Date: Sun, 23 Dec 2007 02:17:49 +0000 (+0000) Subject: Add HTML ID's mw-read-only-warning and mw-anon-edit-warning to warnings when editing... X-Git-Tag: 1.31.0-rc.0~50300 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=7af20970abc7b4ba9d8094a25e53bd790dc5f280;p=lhc%2Fweb%2Fwiklou.git Add HTML ID's mw-read-only-warning and mw-anon-edit-warning to warnings when editing to allow CSS styling. --- 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