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:
f373fa0
)
Don't show checkbox is the user can't use it
author
Aaron Schulz
<aaron@users.mediawiki.org>
Fri, 21 Mar 2008 04:50:34 +0000
(
04:50
+0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Fri, 21 Mar 2008 04:50:34 +0000
(
04:50
+0000)
includes/SpecialUndelete.php
patch
|
blob
|
history
diff --git
a/includes/SpecialUndelete.php
b/includes/SpecialUndelete.php
index
f56beb4
..
2f56ae8
100644
(file)
--- a/
includes/SpecialUndelete.php
+++ b/
includes/SpecialUndelete.php
@@
-972,6
+972,18
@@
class UndeleteForm {
# Format the user-visible controls (comment field, submission button)
# in a nice little table
$align = $wgContLang->isRtl() ? 'left' : 'right';
# Format the user-visible controls (comment field, submission button)
# in a nice little table
$align = $wgContLang->isRtl() ? 'left' : 'right';
+ if( $wgUser->isAllowed( 'oversight' ) ) {
+ $unsuppressBox =
+ "<tr>
+ <td> </td>
+ <td>" .
+ Xml::check( 'wpUnsuppress', $this->mUnsuppress, array('id' => 'mw-undelete-unsupress') ) . ' ' .
+ Xml::label( wfMsgHtml('revdelete-unsuppress'), 'mw-undelete-unsupress' ) .
+ "</td>
+ </tr>";
+ } else {
+ $unsuppressBox = "";
+ }
$table =
Xml::openElement( 'fieldset' ) .
Xml::element( 'legend', null, wfMsg( 'undelete') ).
$table =
Xml::openElement( 'fieldset' ) .
Xml::element( 'legend', null, wfMsg( 'undelete') ).
@@
-995,14
+1007,8
@@
class UndeleteForm {
Xml::submitButton( wfMsg( 'undeletebtn' ), array( 'name' => 'restore', 'id' => 'mw-undelete-submit' ) ) .
Xml::element( 'input', array( 'type' => 'reset', 'value' => wfMsg( 'undeletereset' ), 'id' => 'mw-undelete-reset' ) ) .
"</td>
Xml::submitButton( wfMsg( 'undeletebtn' ), array( 'name' => 'restore', 'id' => 'mw-undelete-submit' ) ) .
Xml::element( 'input', array( 'type' => 'reset', 'value' => wfMsg( 'undeletereset' ), 'id' => 'mw-undelete-reset' ) ) .
"</td>
- </tr>
- <tr>
- <td> </td>
- <td>" .
- Xml::check( 'wpUnsuppress', $this->mUnsuppress, array('id' => 'mw-undelete-unsupress') ) . ' ' .
- Xml::label( wfMsgHtml('revdelete-unsuppress'), 'mw-undelete-unsupress' ) .
- "</td>
</tr>" .
</tr>" .
+ $unsuppressBox .
Xml::closeElement( 'table' ) .
Xml::closeElement( 'fieldset' );
Xml::closeElement( 'table' ) .
Xml::closeElement( 'fieldset' );