r64771 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64770‎ | r64771 | r64772 >
Date:02:30, 9 April 2010
Author:tstarling
Status:ok
Tags:
Comment:
Make Special:CentralAuth work with the pre-r61737 schema.
Modified paths:
  • /trunk/extensions/CentralAuth/CentralAuthUser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralAuth/CentralAuthUser.php
@@ -403,9 +403,12 @@
404404 public function getHiddenLevel() {
405405 $this->loadState();
406406
407 - // b/c-failsafe. Should never happen
408 - if( $this->mHidden === '0' )
 407+ // backwards compatibility for mid-migration
 408+ if( strval( $this->mHidden ) === '0' ) {
409409 $this->mHidden = '';
 410+ } elseif ( strval( $this->mHidden ) === '1' ) {
 411+ $this->mHidden = self::HIDDEN_LISTS;
 412+ }
410413
411414 return $this->mHidden;
412415 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r64772MFT r64771: Make Special:CentralAuth work with the pre-r61737 schema.tstarling02:32, 9 April 2010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r61737Rewrite CentralAuth admin form and lock/hide mechanism. Changes:...vasilievvv02:41, 31 January 2010

Status & tagging log