r107027 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107026‎ | r107027 | r107028 >
Date:01:06, 22 December 2011
Author:reedy
Status:resolved
Tags:
Comment:
Update paths from r106787

And also, use more newer/familiar code for inclusion of maintenance script base
Modified paths:
  • /trunk/extensions/CentralAuth/maintenance/migratePass0.php (modified) (history)
  • /trunk/extensions/CentralAuth/maintenance/migratePass1.php (modified) (history)
  • /trunk/extensions/CentralAuth/maintenance/migrateStewards.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralAuth/maintenance/migratePass0.php
@@ -4,7 +4,11 @@
55 // * generate 'globalnames' and 'localnames' entries for each user on each wiki
66 // --> enable
77
8 -require dirname( __FILE__ ) . '/../../maintenance/commandLine.inc';
 8+$IP = getenv( 'MW_INSTALL_PATH' );
 9+if ( $IP === false ) {
 10+ $IP = dirname( __FILE__ ) . '/../../..';
 11+}
 12+requir_once( "$IP/maintenance/commandLine.inc" );
913
1014 /**
1115 * Copy user data for this wiki into the localuser table
Index: trunk/extensions/CentralAuth/maintenance/migratePass1.php
@@ -4,7 +4,11 @@
55 // * go through all usernames in 'globalnames' and for those
66 // that can be automatically migrated, go ahead and do it.
77
8 -require dirname( __FILE__ ) . '/../../maintenance/commandLine.inc';
 8+$IP = getenv( 'MW_INSTALL_PATH' );
 9+if ( $IP === false ) {
 10+ $IP = dirname( __FILE__ ) . '/../../..';
 11+}
 12+requir_once( "$IP/maintenance/commandLine.inc" );
913
1014 function migratePassOne() {
1115 $migrated = 0;
Index: trunk/extensions/CentralAuth/maintenance/migrateStewards.php
@@ -1,6 +1,10 @@
22 <?php
33
4 -require dirname( __FILE__ ) . '/../../maintenance/commandLine.inc';
 4+$IP = getenv( 'MW_INSTALL_PATH' );
 5+if ( $IP === false ) {
 6+ $IP = dirname( __FILE__ ) . '/../../..';
 7+}
 8+requir_once( "$IP/maintenance/commandLine.inc" );
59
610 echo "Populating global groups table with stewards...\n";
711

Follow-up revisions

RevisionCommit summaryAuthorDate
r107029Followup r107027, require_once will work much betterreedy01:07, 22 December 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r106787Move maintenance scripts into new maintenance dirreedy12:41, 20 December 2011

Status & tagging log