X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fcdb.php;h=5aaf01f32ff16437678c42158ff4473cec07f1fc;hb=93ab3ef41c339cd1c1140dd69f799b3cd3145b31;hp=459061189675a52327370f5f03e7622fa83df4fb;hpb=5df5a5b4a8ce61cda82af3c636a9b1f3016e6464;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cdb.php b/maintenance/cdb.php index 4590611896..5aaf01f32f 100644 --- a/maintenance/cdb.php +++ b/maintenance/cdb.php @@ -21,6 +21,8 @@ * @todo document * @ingroup Maintenance */ +use \Cdb\Exception as CdbException; +use \Cdb\Reader as CdbReader; /** */ require_once __DIR__ . '/commandLine.inc'; @@ -59,7 +61,7 @@ do { exit; } - $args = explode( ' ', $line ); + $args = explode( ' ', $line, 2 ); $command = array_shift( $args ); // process command @@ -77,7 +79,8 @@ do { print "Loading cdb file $file..."; try { $fileHandle = CdbReader::open( $file ); - } catch ( CdbException $e ) {} + } catch ( CdbException $e ) { + } if ( !$fileHandle ) { print "not a cdb file or unable to read it\n";