Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -34,6 +34,8 @@ |
35 | 35 | class that extends PageArchive. |
36 | 36 | * (bug 28915) Implement QUnit test suite for MediaWiki JavaScript. |
37 | 37 | 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. |
38 | 40 | |
39 | 41 | === Bug fixes in 1.19 === |
40 | 42 | * (bug 10154) Don't allow user to specify days beyond $wgRCMaxAge. |
Index: trunk/phase3/CREDITS |
— | — | @@ -91,6 +91,7 @@ |
92 | 92 | * Dan Nessett |
93 | 93 | * Daniel Arnold |
94 | 94 | * Denny Vrandecic |
| 95 | +* Erwin Dokter |
95 | 96 | * FunPika |
96 | 97 | * Harry Burt |
97 | 98 | * Ireas |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1723,6 +1723,10 @@ |
1724 | 1724 | # Then it must be protected based on static groups (regular) |
1725 | 1725 | $classes[] = 'mw-textarea-protected'; |
1726 | 1726 | } |
| 1727 | + # Is the title cascade-protected? |
| 1728 | + if ( $this->mTitle->isCascadeProtected() ) { |
| 1729 | + $classes[] = 'mw-textarea-cprotected'; |
| 1730 | + } |
1727 | 1731 | } |
1728 | 1732 | $attribs = array( 'tabindex' => 1 ); |
1729 | 1733 | if ( is_array($customAttribs) ) |