diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-06-22 11:28:20 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-06-22 11:28:20 +0200 |
commit | 9db190c7e736ec8d063187d4241b59feaf7dc2d1 (patch) | |
tree | 46d1a0dee7febef5c2d57a9f7b972be16a163b3d /maintenance/sql.php | |
parent | 78677c7bbdcc9739f6c10c75935898a20e1acd9e (diff) |
update to MediaWiki 1.17.0
Diffstat (limited to 'maintenance/sql.php')
-rw-r--r-- | maintenance/sql.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/maintenance/sql.php b/maintenance/sql.php index fd4be19a..e1f2bb5f 100644 --- a/maintenance/sql.php +++ b/maintenance/sql.php @@ -21,7 +21,7 @@ * @ingroup Maintenance */ -require_once( dirname(__FILE__) . '/Maintenance.php' ); +require_once( dirname( __FILE__ ) . '/Maintenance.php' ); class MwSql extends Maintenance { public function __construct() { @@ -39,7 +39,7 @@ class MwSql extends Maintenance { $promptObject = new SqlPromptPrinter( "> " ); $promptCallback = $promptObject->cb(); } - + if ( !$file ) $this->error( "Unable to open input file", true ); @@ -69,7 +69,7 @@ class MwSql extends Maintenance { $this->output( "Query OK, $affected row(s) affected\n" ); } } - + public function getDbType() { return Maintenance::DB_ADMIN; } @@ -90,4 +90,4 @@ class SqlPromptPrinter { } $maintClass = "MwSql"; -require_once( DO_MAINTENANCE ); +require_once( RUN_MAINTENANCE_IF_MAIN ); |