r1283 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r1282‎ | r1283 | r1284 >
Date:01:26, 14 April 2003
Author:vibber
Status:old
Tags:
Comment:
Warning for sysops editing protected pages
Modified paths:
  • /trunk/phpwiki/newcodebase/Article.php (modified) (history)
  • /trunk/phpwiki/newcodebase/Language.php (modified) (history)

Diff [purge]

Index: trunk/phpwiki/newcodebase/Article.php
@@ -462,6 +462,10 @@
463463 wfMsg( "readonlywarning" ) .
464464 "</strong>" );
465465 }
 466+ if( $wgTitle->isProtected() ) {
 467+ $wgOut->addHTML( "<strong>" . wfMsg( "protectedpagewarning" ) .
 468+ "</strong><br />\n" );
 469+ }
466470
467471 $kblength = (int)(strlen( $wpTextbox1 ) / 1024);
468472 if( $kblength > 29 ) {
Index: trunk/phpwiki/newcodebase/Language.php
@@ -512,6 +512,10 @@
513513 "readonlywarning" => "WARNING: The database has been locked for maintenance,
514514 so you will not be able to save your edits right now. You may wish to cut-n-paste
515515 the text into a text file and save it for later.",
 516+"protectedpagewarning" => "WARNING: This page has been locked so that only
 517+users with sysop priveledges can edit it. Be sure you are following the
 518+<a href='/wiki/Wikipedia:Protected_page_guidelines'>protected page
 519+guidelines</a>.",
516520
517521 # History pages
518522 #

Status & tagging log