From 37293aeb5af5b99df84912855ada313608f1b838 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 24 Jan 2007 01:28:50 +0000 Subject: [PATCH] Fix up paths so you can call these scripts from base dir Also fixed an 'old' table reference which should now be 'text' ... --- maintenance/storage/compressOld.php | 2 +- maintenance/storage/dumpRev.php | 5 +++-- maintenance/storage/moveToExternal.php | 2 +- maintenance/storage/resolveStubs.php | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/maintenance/storage/compressOld.php b/maintenance/storage/compressOld.php index 90f4947d1e..87aebb7837 100644 --- a/maintenance/storage/compressOld.php +++ b/maintenance/storage/compressOld.php @@ -31,7 +31,7 @@ */ $optionsWithArgs = array( 't', 'c', 's', 'f', 'h', 'extdb', 'endid', 'e' ); -require_once( "../commandLine.inc" ); +require_once( dirname(__FILE__) . '/../commandLine.inc' ); require_once( "compressOld.inc" ); if( !function_exists( "gzdeflate" ) ) { diff --git a/maintenance/storage/dumpRev.php b/maintenance/storage/dumpRev.php index a082edc00f..d35af38463 100644 --- a/maintenance/storage/dumpRev.php +++ b/maintenance/storage/dumpRev.php @@ -1,8 +1,9 @@ selectRow( 'old', array( 'old_flags', 'old_text' ), array( 'old_id' => $args[0] ) ); +$row = $dbr->selectRow( 'text', array( 'old_flags', 'old_text' ), array( 'old_id' => $args[0] ) ); $obj = unserialize( $row->old_text ); if ( get_class( $obj ) == 'concatenatedgziphistoryblob' ) { diff --git a/maintenance/storage/moveToExternal.php b/maintenance/storage/moveToExternal.php index 40ac84d7ee..6d3ebfcb0e 100644 --- a/maintenance/storage/moveToExternal.php +++ b/maintenance/storage/moveToExternal.php @@ -5,7 +5,7 @@ define( 'REPORTING_INTERVAL', 1 ); if ( !defined( 'MEDIAWIKI' ) ) { $optionsWithArgs = array( 'm', 's' ); - require_once( '../commandLine.inc' ); + require_once( dirname(__FILE__) . '/../commandLine.inc' ); require_once( 'ExternalStoreDB.php' ); require_once( 'resolveStubs.php' ); diff --git a/maintenance/storage/resolveStubs.php b/maintenance/storage/resolveStubs.php index 973b7b0d5f..6836ae60cb 100644 --- a/maintenance/storage/resolveStubs.php +++ b/maintenance/storage/resolveStubs.php @@ -5,7 +5,7 @@ define( 'REPORTING_INTERVAL', 100 ); if ( !defined( 'MEDIAWIKI' ) ) { $optionsWithArgs = array( 'm' ); - require_once( '../commandLine.inc' ); + require_once( dirname(__FILE__) . '/../commandLine.inc' ); require_once( 'includes/ExternalStoreDB.php' ); resolveStubs(); -- 2.20.1