Fix up paths so you can call these scripts from base dir

Also fixed an 'old' table reference which should now be 'text' ...
This commit is contained in:
Brion Vibber 2007-01-24 01:28:50 +00:00
parent c1791ef742
commit 37293aeb5a
4 changed files with 6 additions and 5 deletions

View file

@ -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" ) ) {

View file

@ -1,8 +1,9 @@
<?php
require_once( 'commandLine.inc' );
require_once( dirname(__FILE__) . '/../commandLine.inc' );
$dbr = wfGetDB( DB_SLAVE );
$row = $dbr->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' ) {

View file

@ -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' );

View file

@ -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();