Last modified: 2011-08-24 19:18:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32539, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30539 - Make rebuildTitleKeys.php honor MW_INSTALL_PATH
Make rebuildTitleKeys.php honor MW_INSTALL_PATH
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
TitleKey (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Brion Vibber
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-24 09:19 UTC by Gregor Hagedorn
Modified: 2011-08-24 19:18 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Gregor Hagedorn 2011-08-24 09:19:34 UTC
Update in rebuildTitleKeys.php 

Replace:

require_once dirname( dirname( dirname( __FILE__ ) ) ) . "/maintenance/commandLine.inc";

with:

require_once ( getenv( 'MW_INSTALL_PATH' ) !== false
	? getenv( 'MW_INSTALL_PATH' ) . "/maintenance/commandLine.inc"
	: dirname( __FILE__ ) . '/../../../maintenance/commandLine.inc' );
Comment 1 Brion Vibber 2011-08-24 19:12:55 UTC
Actually... this seems to have already been done in r94419.

$IP = getenv( 'MW_INSTALL_PATH' );
if ( $IP === false )
	$IP = dirname( __FILE__ ) . '/../..';

require_once( "$IP/maintenance/Maintenance.php" );
Comment 2 Gregor Hagedorn 2011-08-24 19:18:17 UTC
Ooops, I was testing in r93922, apologies!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links