Index: trunk/phase3/includes/SpecialLockdb.php |
— | — | @@ -11,10 +11,11 @@ |
12 | 12 | function wfSpecialLockdb() { |
13 | 13 | global $wgUser, $wgOut, $wgRequest; |
14 | 14 | |
15 | | - if ( ! $wgUser->isAllowed('siteadmin') ) { |
16 | | - $wgOut->developerRequired(); |
| 15 | + if( !$wgUser->isAllowed( 'siteadmin' ) ) { |
| 16 | + $wgOut->permissionRequired( 'siteadmin' ); |
17 | 17 | return; |
18 | 18 | } |
| 19 | + |
19 | 20 | $action = $wgRequest->getVal( 'action' ); |
20 | 21 | $f = new DBLockForm(); |
21 | 22 | |
Index: trunk/phase3/includes/SpecialUnlockdb.php |
— | — | @@ -11,10 +11,11 @@ |
12 | 12 | function wfSpecialUnlockdb() { |
13 | 13 | global $wgUser, $wgOut, $wgRequest; |
14 | 14 | |
15 | | - if ( ! $wgUser->isAllowed('siteadmin') ) { |
16 | | - $wgOut->developerRequired(); |
| 15 | + if( !$wgUser->isAllowed( 'siteadmin' ) ) { |
| 16 | + $wgOut->permissionRequired( 'siteadmin' ); |
17 | 17 | return; |
18 | 18 | } |
| 19 | + |
19 | 20 | $action = $wgRequest->getVal( 'action' ); |
20 | 21 | $f = new DBUnlockForm(); |
21 | 22 | |