Index: trunk/phase3/includes/Article.php |
— | — | @@ -1992,7 +1992,7 @@ |
1993 | 1993 | $reason = $this->DeleteReason; |
1994 | 1994 | } |
1995 | 1995 | # Flag to hide all contents of the archived revisions |
1996 | | - $suppress = $wgRequest->getVal( 'wpSuppress' ) && $wgUser->isAllowed('deleterevision'); |
| 1996 | + $suppress = $wgRequest->getVal( 'wpSuppress' ) && $wgUser->isAllowed('hiderevision'); |
1997 | 1997 | |
1998 | 1998 | # This code desperately needs to be totally rewritten |
1999 | 1999 | |
— | — | @@ -2143,7 +2143,7 @@ |
2144 | 2144 | $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
2145 | 2145 | $wgOut->addWikiMsg( 'confirmdeletetext' ); |
2146 | 2146 | |
2147 | | - if( $wgUser->isAllowed( 'deleterevision' ) ) { |
| 2147 | + if( $wgUser->isAllowed( 'hiderevision' ) ) { |
2148 | 2148 | $suppress = "<tr id=\"wpDeleteSuppressRow\" name=\"wpDeleteSuppressRow\"><td></td><td>"; |
2149 | 2149 | $suppress .= Xml::checkLabel( wfMsg( 'revdelete-suppress' ), 'wpSuppress', 'wpSuppress', false, array( 'tabindex' => '2' ) ); |
2150 | 2150 | $suppress .= "</td></tr>"; |
Index: trunk/phase3/includes/FileDeleteForm.php |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | $this->oldimage = $wgRequest->getText( 'oldimage', false ); |
47 | 47 | $token = $wgRequest->getText( 'wpEditToken' ); |
48 | 48 | # Flag to hide all contents of the archived revisions |
49 | | - $suppress = $wgRequest->getVal( 'wpSuppress' ) && $wgUser->isAllowed('deleterevision'); |
| 49 | + $suppress = $wgRequest->getVal( 'wpSuppress' ) && $wgUser->isAllowed('hiderevision'); |
50 | 50 | |
51 | 51 | if( $this->oldimage && !self::isValidOldSpec($this->oldimage) ) { |
52 | 52 | $wgOut->showUnexpectedValueError( 'oldimage', htmlspecialchars( $this->oldimage ) ); |
— | — | @@ -126,7 +126,7 @@ |
127 | 127 | global $wgOut, $wgUser, $wgRequest, $wgContLang; |
128 | 128 | $align = $wgContLang->isRtl() ? 'left' : 'right'; |
129 | 129 | |
130 | | - if( $wgUser->isAllowed( 'deleterevision' ) ) { |
| 130 | + if( $wgUser->isAllowed( 'hiderevision' ) ) { |
131 | 131 | $suppress = "<tr id=\"wpDeleteSuppressRow\" name=\"wpDeleteSuppressRow\"><td></td><td>"; |
132 | 132 | $suppress .= Xml::checkLabel( wfMsg( 'revdelete-suppress' ), 'wpSuppress', 'wpSuppress', false, array( 'tabindex' => '2' ) ); |
133 | 133 | $suppress .= "</td></tr>"; |