diff options
Diffstat (limited to 'maintenance/storage/dumpRev.php')
-rw-r--r-- | maintenance/storage/dumpRev.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/maintenance/storage/dumpRev.php b/maintenance/storage/dumpRev.php index 4d0ccb58..d35af384 100644 --- a/maintenance/storage/dumpRev.php +++ b/maintenance/storage/dumpRev.php @@ -1,8 +1,9 @@ <?php -require_once( 'commandLine.inc' ); -$dbr =& wfGetDB( DB_SLAVE ); -$row = $dbr->selectRow( 'old', array( 'old_flags', 'old_text' ), array( 'old_id' => $args[0] ) ); +require_once( dirname(__FILE__) . '/../commandLine.inc' ); + +$dbr = wfGetDB( DB_SLAVE ); +$row = $dbr->selectRow( 'text', array( 'old_flags', 'old_text' ), array( 'old_id' => $args[0] ) ); $obj = unserialize( $row->old_text ); if ( get_class( $obj ) == 'concatenatedgziphistoryblob' ) { @@ -11,4 +12,4 @@ if ( get_class( $obj ) == 'concatenatedgziphistoryblob' ) { var_dump( $obj ); } -?> +?>
\ No newline at end of file |