r28786 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28785‎ | r28786 | r28787 >
Date:02:17, 23 December 2007
Author:simetrical
Status:old
Tags:
Comment:
Add HTML ID's mw-read-only-warning and mw-anon-edit-warning to warnings when editing to allow CSS styling.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -1056,9 +1056,9 @@
10571057 }
10581058
10591059 if( wfReadOnly() ) {
1060 - $wgOut->addWikiText( wfMsg( 'readonlywarning' ) );
 1060+ $wgOut->addWikiText( '<div id="mw-read-only-warning">'.wfMsg( 'readonlywarning' ).'</div>' );
10611061 } elseif( $wgUser->isAnon() && $this->formtype != 'preview' ) {
1062 - $wgOut->addWikiText( wfMsg( 'anoneditwarning' ) );
 1062+ $wgOut->addWikiText( '<div id="mw-anon-edit-warning">'.wfMsg( 'anoneditwarning' ).'</div>' );
10631063 } else {
10641064 if( $this->isCssJsSubpage && $this->formtype != 'preview' ) {
10651065 # Check the skin exists
Index: trunk/phase3/RELEASE-NOTES
@@ -106,7 +106,9 @@
107107 * Added link to the old title in Special:Movepage
108108 * On Special:Movepage, errors are now more noticeable.
109109 * It is now possible to change rights on other local wikis without the MakeSysop
110 - extension
 110+ extension
 111+* Add HTML ID's mw-read-only-warning and mw-anon-edit-warning to warnings when
 112+ editing to allow CSS styling.
111113
112114 === Bug fixes in 1.12 ===
113115

Status & tagging log