* @ingroup Maintenance
*/
-require_once( dirname(__FILE__) . '/Maintenance.php' );
+require_once( dirname( __FILE__ ) . '/Maintenance.php' );
class MwSql extends Maintenance {
public function __construct() {
$promptObject = new SqlPromptPrinter( "> " );
$promptCallback = $promptObject->cb();
}
-
+
if ( !$file )
$this->error( "Unable to open input file", true );
$this->output( "Query OK, $affected row(s) affected\n" );
}
}
-
- protected function getDbType() {
+
+ public function getDbType() {
return Maintenance::DB_ADMIN;
}
}
}
$maintClass = "MwSql";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );