r106022 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106021‎ | r106022 | r106023 >
Date:14:16, 13 December 2011
Author:mah
Status:ok
Tags:
Comment:
Bug 33000 - AntiSpoof: `batchAntiSpoof.php' does not respect `MW_INSTALL_PATH' environment variable.
Modified paths:
  • /trunk/extensions/AntiSpoof/batchAntiSpoof.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AntiSpoof/batchAntiSpoof.php
@@ -1,8 +1,9 @@
22 <?php
33 // Go through all usernames and calculate and record spoof thingies
44
5 -$base = dirname( dirname( dirname( __FILE__ ) ) );
6 -require $base . '/maintenance/commandLine.inc';
 5+require_once ( getenv( 'MW_INSTALL_PATH' ) !== false
 6+ ? getenv( 'MW_INSTALL_PATH' ) . "/maintenance/commandLine.inc"
 7+ : dirname( __FILE__ ) . '/../../maintenance/commandLine.inc' );
78
89 $dbw = wfGetDB( DB_MASTER );
910

Sign-offs

UserFlagDate
Dantmaninspected17:44, 13 December 2011

Status & tagging log