http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88424
Revision: 88424
Author: catrope
Date: 2011-05-19 19:48:50 +0000 (Thu, 19 May 2011)
Log Message:
-----------
(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
trunk/phase3/RELEASE-NOTES-1.19
trunk/phase3/includes/EditPage.php
Modified: trunk/phase3/CREDITS
===================================================================
--- trunk/phase3/CREDITS 2011-05-19 19:47:55 UTC (rev 88423)
+++ trunk/phase3/CREDITS 2011-05-19 19:48:50 UTC (rev 88424)
@@ -91,6 +91,7 @@
* Dan Nessett
* Daniel Arnold
* Denny Vrandecic
+* Erwin Dokter
* FunPika
* Harry Burt
* Ireas
Modified: trunk/phase3/RELEASE-NOTES-1.19
===================================================================
--- trunk/phase3/RELEASE-NOTES-1.19 2011-05-19 19:47:55 UTC (rev 88423)
+++ trunk/phase3/RELEASE-NOTES-1.19 2011-05-19 19:48:50 UTC (rev 88424)
@@ -34,6 +34,8 @@
class that extends PageArchive.
* (bug 28915) Implement QUnit test suite for MediaWiki JavaScript.
Also built-in support for distribution through a TestSwarm instance.
+* (bug 29036) For cascade-protected pages, the mw-textarea-cprotected class is
+ added to the textarea on the edit form.
=== Bug fixes in 1.19 ===
* (bug 10154) Don't allow user to specify days beyond $wgRCMaxAge.
Modified: trunk/phase3/includes/EditPage.php
===================================================================
--- trunk/phase3/includes/EditPage.php 2011-05-19 19:47:55 UTC (rev 88423)
+++ trunk/phase3/includes/EditPage.php 2011-05-19 19:48:50 UTC (rev 88424)
@@ -1723,6 +1723,10 @@
# Then it must be protected based on static
groups (regular)
$classes[] = 'mw-textarea-protected';
}
+ # Is the title cascade-protected?
+ if ( $this->mTitle->isCascadeProtected() ) {
+ $classes[] = 'mw-textarea-cprotected';
+ }
}
$attribs = array( 'tabindex' => 1 );
if ( is_array($customAttribs) )
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs