r84006 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84005‎ | r84006 | r84007 >
Date:11:20, 15 March 2011
Author:happy-melon
Status:ok
Tags:
Comment:
Fix exception on TWN raised in r83855 CR.
Modified paths:
  • /trunk/phase3/includes/specials/SpecialBlock.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialBlock.php
@@ -215,9 +215,15 @@
216216 $fields['HardBlock']['default'] = !$block->mAnonOnly;
217217 $fields['CreateAccount']['default'] = $block->mCreateAccount;
218218 $fields['AutoBlock']['default'] = $block->mEnableAutoblock;
219 - $fields['DisableEmail']['default'] = $block->mBlockEmail;
220 - $fields['HideUser']['default'] = $block->mHideName;
221 - $fields['DisableUTEdit']['default'] = !$block->mAllowUsertalk;
 219+ if( isset( $fields['DisableEmail'] ) ){
 220+ $fields['DisableEmail']['default'] = $block->mBlockEmail;
 221+ }
 222+ if( isset( $fields['HideUser'] ) ){
 223+ $fields['HideUser']['default'] = $block->mHideName;
 224+ }
 225+ if( isset( $fields['DisableUTEdit'] ) ){
 226+ $fields['DisableUTEdit']['default'] = !$block->mAllowUsertalk;
 227+ }
222228 $fields['Reason']['default'] = $block->mReason;
223229 $fields['AlreadyBlocked']['default'] = true;
224230

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r83855Further massive rewrite of the blocking frontend: spin out unblocking into a ...happy-melon21:33, 13 March 2011

Status & tagging log