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:
761a0e2
)
Protection form: Show action as header of an action if the message for this action...
author
Rotem Liss
<rotem@users.mediawiki.org>
Sun, 7 Sep 2008 08:28:45 +0000
(08:28 +0000)
committer
Rotem Liss
<rotem@users.mediawiki.org>
Sun, 7 Sep 2008 08:28:45 +0000
(08:28 +0000)
includes/ProtectionForm.php
patch
|
blob
|
history
diff --git
a/includes/ProtectionForm.php
b/includes/ProtectionForm.php
index
738d55d
..
f691062
100644
(file)
--- a/
includes/ProtectionForm.php
+++ b/
includes/ProtectionForm.php
@@
-263,9
+263,13
@@
class ProtectionForm {
foreach( $this->mRestrictions as $action => $required ) {
/* Not all languages have V_x <-> N_x relation */
+ $msg = wfMsg( 'restriction-' . $action );
+ if( wfEmptyMsg( 'restriction-' . $action, $msg ) ) {
+ $msg = $action;
+ }
$label = Xml::element( 'label',
array( 'for' => "mwProtect-level-$action" ),
-
wfMsg( 'restriction-' . $action )
);
+
$msg
);
$out .= "<th>$label</th>";
}
$out .= "</tr>