Add HTML ID's mw-read-only-warning and mw-anon-edit-warning to warnings when editing...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 23 Dec 2007 02:17:49 +0000 (02:17 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 23 Dec 2007 02:17:49 +0000 (02:17 +0000)
RELEASE-NOTES
includes/EditPage.php

index 644ca51..93367e6 100644 (file)
@@ -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 ===
 
index a390598..e93bae6 100644 (file)
@@ -1056,9 +1056,9 @@ class EditPage {
                }
 
                if( wfReadOnly() ) {
-                       $wgOut->addWikiText( wfMsg( 'readonlywarning' ) );
+                       $wgOut->addWikiText( '<div id="mw-read-only-warning">'.wfMsg( 'readonlywarning' ).'</div>' );
                } elseif( $wgUser->isAnon() && $this->formtype != 'preview' ) {
-                       $wgOut->addWikiText( wfMsg( 'anoneditwarning' ) );
+                       $wgOut->addWikiText( '<div id="mw-anon-edit-warning">'.wfMsg( 'anoneditwarning' ).'</div>' );
                } else {
                        if( $this->isCssJsSubpage && $this->formtype != 'preview' ) {
                                # Check the skin exists