Index: trunk/phase3/includes/Article.php |
— | — | @@ -740,6 +740,14 @@ |
741 | 741 | } |
742 | 742 | } |
743 | 743 | |
| 744 | + if ( $this->mTitle->isProtected() ) { |
| 745 | + $editrestr = $this->mTitle->getRestrictions('edit'); |
| 746 | + $moverestr = $this->mTitle->getRestrictions('move'); |
| 747 | + $wgOut->setSubtitle($wgOut->getSubtitle() . |
| 748 | + wfMsg( 'protected-subtitle', |
| 749 | + $editrestr[0], $moverestr[0] ) ); |
| 750 | + } |
| 751 | + |
744 | 752 | $outputDone = false; |
745 | 753 | wfRunHooks( 'ArticleViewHeader', array( &$this, &$outputDone, &$pcache ) ); |
746 | 754 | if ( $pcache ) { |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -797,6 +797,7 @@ |
798 | 798 | 'namespaceprotected' => "You do not have permission to edit pages in the '''$1''' namespace.", |
799 | 799 | 'customcssjsprotected' => "You do not have permission to edit this page, because it contains another user's personal settings.", |
800 | 800 | 'ns-specialprotected' => "Pages in the {{ns:special}} namespace cannot be edited.", |
| 801 | +'protected-subtitle' => "<!-- This message will be displayed as the subtitle for pages that are protected. The argument $1 is the level of edit-protection (i.e., sysop or autoconfirmed), and $2 is the level of move-protection. --> (This page is protected.)", |
801 | 802 | |
802 | 803 | # Login and logout pages |
803 | 804 | 'logouttitle' => 'User logout', |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -412,6 +412,8 @@ |
413 | 413 | * Resizing transparent GIF images with GD now retains transparency by skipping |
414 | 414 | resampling |
415 | 415 | * (bug 11065) Fix regression in handling of wiki-formatted EXIF metadata |
| 416 | +* (bug 10347) Add subtitle message to indicate that the page being viewed is |
| 417 | + protected. |
416 | 418 | |
417 | 419 | |
418 | 420 | == API changes since 1.10 == |