(bug 29036) For cascade-protected pages, the mw-textarea-cprotected class is added...
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 19 May 2011 19:48:50 +0000 (19:48 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 19 May 2011 19:48:50 +0000 (19:48 +0000)
CREDITS
RELEASE-NOTES-1.19
includes/EditPage.php

diff --git a/CREDITS b/CREDITS
index e81d6eb..df73c8e 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -91,6 +91,7 @@ following names for their contribution to the product.
 * Dan Nessett
 * Daniel Arnold
 * Denny Vrandecic
+* Erwin Dokter
 * FunPika
 * Harry Burt
 * Ireas
index 7de373b..4f165d4 100644 (file)
@@ -34,6 +34,8 @@ production.
   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.
index cee2496..48dd317 100644 (file)
@@ -1723,6 +1723,10 @@ HTML
                                # 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) )