From: Raimond Spekking Date: Mon, 22 Sep 2008 16:16:37 +0000 (+0000) Subject: Add a link to edit the proction reason list X-Git-Tag: 1.31.0-rc.0~45137 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=09049f4e32e246df0131362be965425d3e193a9a;p=lhc%2Fweb%2Fwiklou.git Add a link to edit the proction reason list --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 592c5b9344..93cf853824 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -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: diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 07ded43ad8..17c1858d6f 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -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 .= '

' . $link . '

'; + } + if ( !$this->disabled ) { $out .= Xml::closeElement( 'form' ) . $this->buildCleanupScript(); diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 222fe3f3e5..2af9e7483e 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index 04d398ccf9..7140f4260e 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -1569,6 +1569,7 @@ $wgMessageStructure = array( 'protect-otherreason', 'protect-otherreason-op', 'protect-dropdown', + 'protect-edit-reasonlist', 'restriction-type', 'restriction-level', 'minimum-size', diff --git a/skins/common/common_rtl.css b/skins/common/common_rtl.css index cda3835de4..11fc995b38 100644 --- a/skins/common/common_rtl.css +++ b/skins/common/common_rtl.css @@ -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 { diff --git a/skins/common/shared.css b/skins/common/shared.css index 21194403b6..56bcb70351 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -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; } diff --git a/skins/modern/rtl.css b/skins/modern/rtl.css index 239bc8d496..a9eca51530 100644 --- a/skins/modern/rtl.css +++ b/skins/modern/rtl.css @@ -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; } diff --git a/skins/monobook/rtl.css b/skins/monobook/rtl.css index f00cf09fbe..fbd5ab35ea 100644 --- a/skins/monobook/rtl.css +++ b/skins/monobook/rtl.css @@ -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; } diff --git a/skins/simple/rtl.css b/skins/simple/rtl.css index c560caba89..1ba1431df0 100644 --- a/skins/simple/rtl.css +++ b/skins/simple/rtl.css @@ -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; }