diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
commit | ca32f08966f1b51fcb19460f0996bb0c4048e6fe (patch) | |
tree | ec04cc15b867bc21eedca904cea9af0254531a11 /maintenance/sqlite.php | |
parent | a22fbfc60f36f5f7ee10d5ae6fe347340c2ee67c (diff) |
Update to MediaWiki 1.18.0
* also update ArchLinux skin to chagnes in MonoBook
* Use only css to hide our menu bar when printing
Diffstat (limited to 'maintenance/sqlite.php')
-rw-r--r-- | maintenance/sqlite.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/maintenance/sqlite.php b/maintenance/sqlite.php index 13d136d8..dc8a430e 100644 --- a/maintenance/sqlite.php +++ b/maintenance/sqlite.php @@ -41,20 +41,19 @@ class SqliteMaintenance extends Maintenance { } public function execute() { - global $wgDBtype; - // Should work even if we use a non-SQLite database if ( $this->hasOption( 'check-syntax' ) ) { $this->checkSyntax(); + return; } - if ( $wgDBtype != 'sqlite' ) { + $this->db = wfGetDB( DB_MASTER ); + + if ( $this->db->getType() != 'sqlite' ) { $this->error( "This maintenance script requires a SQLite database.\n" ); return; } - $this->db = wfGetDB( DB_MASTER ); - if ( $this->hasOption( 'vacuum' ) ) { $this->vacuum(); } |