Add a link to edit the proction reason list
authorRaimond Spekking <raymond@users.mediawiki.org>
Mon, 22 Sep 2008 16:16:37 +0000 (16:16 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Mon, 22 Sep 2008 16:16:37 +0000 (16:16 +0000)
includes/DefaultSettings.php
includes/ProtectionForm.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc
skins/common/common_rtl.css
skins/common/shared.css
skins/modern/rtl.css
skins/monobook/rtl.css
skins/simple/rtl.css

index 592c5b9..93cf853 100644 (file)
@@ -1375,7 +1375,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches don't keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '178';
+$wgStyleVersion = '179';
 
 
 # Server-side caching:
index 07ded43..17c1858 100644 (file)
@@ -436,6 +436,12 @@ class ProtectionForm {
                }
                $out .= Xml::closeElement( 'fieldset' );
 
+               if ( $wgUser->isAllowed( 'editinterface' ) ) {
+                       $linkTitle = Title::makeTitleSafe( NS_MEDIAWIKI, 'protect-dropdown' );
+                       $link = $wgUser->getSkin()->Link ( $linkTitle, wfMsgHtml( 'protect-edit-reasonlist' ) );
+                       $out .= '<p class="mw-protect-editreasons">' . $link . '</p>';
+               }
+
                if ( !$this->disabled ) {
                        $out .= Xml::closeElement( 'form' ) .
                                $this->buildCleanupScript();
index 222fe3f..2af9e74 100644 (file)
@@ -2346,6 +2346,7 @@ You can change this page's protection level, but it will not affect the cascadin
 ** Excessive spamming
 ** Counter-productive edit warring
 ** High traffic page',
+'protect-edit-reasonlist'     => 'Edit protection reasons',
 'restriction-type'            => 'Permission:',
 'restriction-level'           => 'Restriction level:',
 'minimum-size'                => 'Min size',
index 04d398c..7140f42 100644 (file)
@@ -1569,6 +1569,7 @@ $wgMessageStructure = array(
                'protect-otherreason',
                'protect-otherreason-op',
                'protect-dropdown',
+               'protect-edit-reasonlist',
                'restriction-type',
                'restriction-level',
                'minimum-size',
index cda3835..11fc995 100644 (file)
@@ -28,8 +28,9 @@ div.tright, div.floatright {
 div.tleft, div.floatleft {
        clear: left;
 }
-/* Convenience links to edit block and delete reasons */
-p.mw-ipb-conveniencelinks, p.mw-filedelete-editreasons, p.mw-delete-editreasons {
+/* Convenience links to edit block, delete and protect reasons */
+p.mw-ipb-conveniencelinks, p.mw-protect-editreasons,
+p.mw-filedelete-editreasons, p.mw-delete-editreasons {
        float: left;
 }
 table.filehistory th {
index 2119440..56bcb70 100644 (file)
@@ -92,8 +92,9 @@ body.ltr .magnify { float:right; }
 .mw-hidden-cats-hidden { display: none; }
 .catlinks-allhidden { display: none; }
 
-/* Convenience links to edit block and delete reasons */
-p.mw-ipb-conveniencelinks, p.mw-filedelete-editreasons, p.mw-delete-editreasons {
+/* Convenience links to edit block, delete and protect reasons */
+p.mw-ipb-conveniencelinks, p.mw-protect-editreasons,
+p.mw-filedelete-editreasons, p.mw-delete-editreasons {
        font-size: 90%;
        float: right;
 }
index 239bc8d..a9eca51 100644 (file)
@@ -82,8 +82,9 @@ input#wpSave, input#wpDiff {
        float: right;
        margin: 0 0 1em 3em;
 }
-/* Convenience links to edit block and delete reasons */
-p.mw-ipb-conveniencelinks, p.mw-filedelete-editreasons, p.mw-delete-editreasons {
+/* Convenience links to edit block, delete and protect reasons */
+p.mw-ipb-conveniencelinks, p.mw-protect-editreasons,
+p.mw-filedelete-editreasons, p.mw-delete-editreasons {
        float: left;
 }
 
index f00cf09..fbd5ab3 100644 (file)
@@ -205,8 +205,9 @@ input#wpSave, input#wpDiff {
        float: right;
        margin: 0 0 1em 3em;
 }
-/* Convenience links to edit block and delete reasons */
-p.mw-ipb-conveniencelinks, p.mw-filedelete-editreasons, p.mw-delete-editreasons {
+/* Convenience links to edit block, delete and protect reasons */
+p.mw-ipb-conveniencelinks, p.mw-protect-editreasons,
+p.mw-filedelete-editreasons, p.mw-delete-editreasons {
        float: left;
 }
 
index c560cab..1ba1431 100644 (file)
@@ -151,8 +151,9 @@ input#wpSave, input#wpDiff {
        float: right;
        margin: 0 0 1em 3em;
 }
-/* Convenience links to edit block and delete reasons */
-p.mw-ipb-conveniencelinks, p.mw-filedelete-editreasons, p.mw-delete-editreasons {
+/* Convenience links to edit block, delete and protect reasons */
+p.mw-ipb-conveniencelinks, p.mw-protect-editreasons,
+p.mw-filedelete-editreasons, p.mw-delete-editreasons {
        float: left;
 }