Allow the signature button wikitext to be overridden locally
[lhc/web/wiklou.git] / maintenance / cdb.php
index 86c686b..453464a 100644 (file)
  * @todo document
  * @ingroup Maintenance
  */
+use \Cdb\Exception as CdbException;
+use \Cdb\Reader as CdbReader;
 
 /** */
 require_once __DIR__ . '/commandLine.inc';
 
 function cdbShowHelp( $command ) {
-       $commandList = array(
+       $commandList = [
                'load' => 'load a cdb file for reading',
                'get' => 'get a value for a key',
                'exit' => 'exit cdb',
                'quit' => 'exit cdb',
                'help' => 'help about a command',
-       );
+       ];
        if ( !$command ) {
                $command = 'fullhelp';
        }
@@ -59,7 +61,7 @@ do {
                exit;
        }
 
-       $args = explode( ' ', $line );
+       $args = explode( ' ', $line, 2 );
        $command = array_shift( $args );
 
        // process command