Also fixed an 'old' table reference which should now be 'text' ...
*/
$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" ) ) {
<?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' ) {
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' );
if ( !defined( 'MEDIAWIKI' ) ) {
$optionsWithArgs = array( 'm' );
- require_once( '../commandLine.inc' );
+ require_once( dirname(__FILE__) . '/../commandLine.inc' );
require_once( 'includes/ExternalStoreDB.php' );
resolveStubs();