r111661 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111660‎ | r111661 | r111662 >
Date:18:56, 16 February 2012
Author:reedy
Status:ok
Tags:
Comment:
Update batchCAAntiSpoof.php per r111660
Modified paths:
  • /trunk/extensions/CentralAuth/AntiSpoof/batchCAAntiSpoof.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralAuth/AntiSpoof/batchCAAntiSpoof.php
@@ -22,6 +22,28 @@
2323 protected function getDB() {
2424 return CentralAuthUser::getCentralDB();
2525 }
 26+
 27+ /**
 28+ * @return string
 29+ */
 30+ protected function getTableName() {
 31+ return 'globaluser';
 32+ }
 33+
 34+ /**
 35+ * @return string
 36+ */
 37+ protected function getUserColumn() {
 38+ return 'gu_name';
 39+ }
 40+
 41+ /**
 42+ * @param $name string
 43+ * @return CentralAuthSpoofUser
 44+ */
 45+ protected function makeSpoofUser( $name ) {
 46+ return new CentralAuthSpoofUser( $name );
 47+ }
2648 }
2749
2850 $maintClass = "BatchCAAntiSpoof";

Follow-up revisions

RevisionCommit summaryAuthorDate
r111662MFT r111659, r111660, r111661reedy18:59, 16 February 2012

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r111660Extract table name and user columns out of main script...reedy18:55, 16 February 2012

Status & tagging log