Index: trunk/phase3/maintenance/storage/compressOld.php |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | */ |
33 | 33 | |
34 | 34 | $optionsWithArgs = array( 't', 'c', 's', 'f', 'h', 'extdb', 'endid', 'e' ); |
35 | | -require_once( "../commandLine.inc" ); |
| 35 | +require_once( dirname(__FILE__) . '/../commandLine.inc' ); |
36 | 36 | require_once( "compressOld.inc" ); |
37 | 37 | |
38 | 38 | if( !function_exists( "gzdeflate" ) ) { |
Index: trunk/phase3/maintenance/storage/moveToExternal.php |
— | — | @@ -5,7 +5,7 @@ |
6 | 6 | if ( !defined( 'MEDIAWIKI' ) ) { |
7 | 7 | $optionsWithArgs = array( 'm', 's' ); |
8 | 8 | |
9 | | - require_once( '../commandLine.inc' ); |
| 9 | + require_once( dirname(__FILE__) . '/../commandLine.inc' ); |
10 | 10 | require_once( 'ExternalStoreDB.php' ); |
11 | 11 | require_once( 'resolveStubs.php' ); |
12 | 12 | |
Index: trunk/phase3/maintenance/storage/resolveStubs.php |
— | — | @@ -5,7 +5,7 @@ |
6 | 6 | if ( !defined( 'MEDIAWIKI' ) ) { |
7 | 7 | $optionsWithArgs = array( 'm' ); |
8 | 8 | |
9 | | - require_once( '../commandLine.inc' ); |
| 9 | + require_once( dirname(__FILE__) . '/../commandLine.inc' ); |
10 | 10 | require_once( 'includes/ExternalStoreDB.php' ); |
11 | 11 | |
12 | 12 | resolveStubs(); |
Index: trunk/phase3/maintenance/storage/dumpRev.php |
— | — | @@ -1,8 +1,9 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -require_once( 'commandLine.inc' ); |
| 4 | +require_once( dirname(__FILE__) . '/../commandLine.inc' ); |
| 5 | + |
5 | 6 | $dbr = wfGetDB( DB_SLAVE ); |
6 | | -$row = $dbr->selectRow( 'old', array( 'old_flags', 'old_text' ), array( 'old_id' => $args[0] ) ); |
| 7 | +$row = $dbr->selectRow( 'text', array( 'old_flags', 'old_text' ), array( 'old_id' => $args[0] ) ); |
7 | 8 | $obj = unserialize( $row->old_text ); |
8 | 9 | |
9 | 10 | if ( get_class( $obj ) == 'concatenatedgziphistoryblob' ) { |