r88424 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88423‎ | r88424 | r88425 >
Date:19:48, 19 May 2011
Author:catrope
Status:ok
Tags:
Comment:
(bug 29036) For cascade-protected pages, the mw-textarea-cprotected class is added to the textarea on the edit form. Patch by Erwin Dokter
Modified paths:
  • /trunk/phase3/CREDITS (modified) (history)
  • /trunk/phase3/RELEASE-NOTES-1.19 (modified) (history)
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/RELEASE-NOTES-1.19
@@ -34,6 +34,8 @@
3535 class that extends PageArchive.
3636 * (bug 28915) Implement QUnit test suite for MediaWiki JavaScript.
3737 Also built-in support for distribution through a TestSwarm instance.
 38+* (bug 29036) For cascade-protected pages, the mw-textarea-cprotected class is
 39+ added to the textarea on the edit form.
3840
3941 === Bug fixes in 1.19 ===
4042 * (bug 10154) Don't allow user to specify days beyond $wgRCMaxAge.
Index: trunk/phase3/CREDITS
@@ -91,6 +91,7 @@
9292 * Dan Nessett
9393 * Daniel Arnold
9494 * Denny Vrandecic
 95+* Erwin Dokter
9596 * FunPika
9697 * Harry Burt
9798 * Ireas
Index: trunk/phase3/includes/EditPage.php
@@ -1723,6 +1723,10 @@
17241724 # Then it must be protected based on static groups (regular)
17251725 $classes[] = 'mw-textarea-protected';
17261726 }
 1727+ # Is the title cascade-protected?
 1728+ if ( $this->mTitle->isCascadeProtected() ) {
 1729+ $classes[] = 'mw-textarea-cprotected';
 1730+ }
17271731 }
17281732 $attribs = array( 'tabindex' => 1 );
17291733 if ( is_array($customAttribs) )

Status & tagging log