r49792 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49791‎ | r49792 | r49793 >
Date:03:19, 24 April 2009
Author:werdna
Status:ok
Tags:
Comment:
(bug 18396) Special:GlobalBlock/X now pre-loads details of the existing block where one exists
Modified paths:
  • /trunk/extensions/GlobalBlocking/SpecialGlobalBlock.php (modified) (history)

Diff [purge]

Index: trunk/extensions/GlobalBlocking/SpecialGlobalBlock.php
@@ -37,6 +37,10 @@
3838 }
3939 }
4040
 41+ if ( GlobalBlocking::getGlobalBlockId( $this->mAddress ) ) {
 42+ $this->mModifyForm = true;
 43+ }
 44+
4145 if ($this->mModifyForm) {
4246 $dbr = GlobalBlocking::getGlobalBlockingSlave();
4347 $block = $dbr->selectRow( 'globalblocks',

Status & tagging log