dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
098b9cb
)
Add a link to edit the proction reason list
author
Raimond Spekking
<raymond@users.mediawiki.org>
Mon, 22 Sep 2008 16:16:37 +0000
(16:16 +0000)
committer
Raimond Spekking
<raymond@users.mediawiki.org>
Mon, 22 Sep 2008 16:16:37 +0000
(16:16 +0000)
includes/DefaultSettings.php
patch
|
blob
|
history
includes/ProtectionForm.php
patch
|
blob
|
history
languages/messages/MessagesEn.php
patch
|
blob
|
history
maintenance/language/messages.inc
patch
|
blob
|
history
skins/common/common_rtl.css
patch
|
blob
|
history
skins/common/shared.css
patch
|
blob
|
history
skins/modern/rtl.css
patch
|
blob
|
history
skins/monobook/rtl.css
patch
|
blob
|
history
skins/simple/rtl.css
patch
|
blob
|
history
diff --git
a/includes/DefaultSettings.php
b/includes/DefaultSettings.php
index
592c5b9
..
93cf853
100644
(file)
--- 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.
*/
* to ensure that client-side caches don't keep obsolete copies of global
* styles.
*/
-$wgStyleVersion = '17
8
';
+$wgStyleVersion = '17
9
';
# Server-side caching:
# Server-side caching:
diff --git
a/includes/ProtectionForm.php
b/includes/ProtectionForm.php
index
07ded43
..
17c1858
100644
(file)
--- a/
includes/ProtectionForm.php
+++ b/
includes/ProtectionForm.php
@@
-436,6
+436,12
@@
class ProtectionForm {
}
$out .= Xml::closeElement( 'fieldset' );
}
$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();
if ( !$this->disabled ) {
$out .= Xml::closeElement( 'form' ) .
$this->buildCleanupScript();
diff --git
a/languages/messages/MessagesEn.php
b/languages/messages/MessagesEn.php
index
222fe3f
..
2af9e74
100644
(file)
--- 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',
** 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',
'restriction-type' => 'Permission:',
'restriction-level' => 'Restriction level:',
'minimum-size' => 'Min size',
diff --git
a/maintenance/language/messages.inc
b/maintenance/language/messages.inc
index
04d398c
..
7140f42
100644
(file)
--- a/
maintenance/language/messages.inc
+++ b/
maintenance/language/messages.inc
@@
-1569,6
+1569,7
@@
$wgMessageStructure = array(
'protect-otherreason',
'protect-otherreason-op',
'protect-dropdown',
'protect-otherreason',
'protect-otherreason-op',
'protect-dropdown',
+ 'protect-edit-reasonlist',
'restriction-type',
'restriction-level',
'minimum-size',
'restriction-type',
'restriction-level',
'minimum-size',
diff --git
a/skins/common/common_rtl.css
b/skins/common/common_rtl.css
index
cda3835
..
11fc995
100644
(file)
--- 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;
}
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 {
float: left;
}
table.filehistory th {
diff --git
a/skins/common/shared.css
b/skins/common/shared.css
index
2119440
..
56bcb70
100644
(file)
--- 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; }
.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;
}
font-size: 90%;
float: right;
}
diff --git
a/skins/modern/rtl.css
b/skins/modern/rtl.css
index
239bc8d
..
a9eca51
100644
(file)
--- 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;
}
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;
}
float: left;
}
diff --git
a/skins/monobook/rtl.css
b/skins/monobook/rtl.css
index
f00cf09
..
fbd5ab3
100644
(file)
--- 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;
}
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;
}
float: left;
}
diff --git
a/skins/simple/rtl.css
b/skins/simple/rtl.css
index
c560cab
..
1ba1431
100644
(file)
--- 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;
}
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;
}
float: left;
}