summaryrefslogtreecommitdiff
path: root/maintenance/storage/dumpRev.php
blob: d35af3846381a78e8caf6c9d4d821e37e492aaf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

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' ) {
	print_r( array_keys( $obj->mItems ) );
} else {
	var_dump( $obj );
}

?>