r15487 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r15486‎ | r15487 | r15488 >
Date:08:36, 10 July 2006
Author:robchurch
Status:old
Tags:
Comment:
Remove use of deprecated OutputPage::developerRequired()
Modified paths:
  • /trunk/phase3/includes/SpecialLockdb.php (modified) (history)
  • /trunk/phase3/includes/SpecialUnlockdb.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialLockdb.php
@@ -11,10 +11,11 @@
1212 function wfSpecialLockdb() {
1313 global $wgUser, $wgOut, $wgRequest;
1414
15 - if ( ! $wgUser->isAllowed('siteadmin') ) {
16 - $wgOut->developerRequired();
 15+ if( !$wgUser->isAllowed( 'siteadmin' ) ) {
 16+ $wgOut->permissionRequired( 'siteadmin' );
1717 return;
1818 }
 19+
1920 $action = $wgRequest->getVal( 'action' );
2021 $f = new DBLockForm();
2122
Index: trunk/phase3/includes/SpecialUnlockdb.php
@@ -11,10 +11,11 @@
1212 function wfSpecialUnlockdb() {
1313 global $wgUser, $wgOut, $wgRequest;
1414
15 - if ( ! $wgUser->isAllowed('siteadmin') ) {
16 - $wgOut->developerRequired();
 15+ if( !$wgUser->isAllowed( 'siteadmin' ) ) {
 16+ $wgOut->permissionRequired( 'siteadmin' );
1717 return;
1818 }
 19+
1920 $action = $wgRequest->getVal( 'action' );
2021 $f = new DBUnlockForm();
2122