findhooks and syntaxChecker don't need DB access :)
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 9 Aug 2009 13:31:15 +0000 (13:31 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 9 Aug 2009 13:31:15 +0000 (13:31 +0000)
maintenance/findhooks.php
maintenance/syntaxChecker.php

index da50b2e..c7b7a0d 100644 (file)
@@ -43,6 +43,10 @@ class FindHooks extends Maintenance {
                $this->addOption( 'online', 'Check against mediawiki.org hook documentation' );
        }
 
+       protected function getDbType() {
+               return Maintenance::DB_NONE;
+       }
+
        public function execute() {
                global $IP;
 
index fa68e49..283b300 100644 (file)
@@ -33,6 +33,10 @@ class SyntaxChecker extends Maintenance {
                $this->addOption( 'with-extensions', 'Also recurse the extensions folder' );
        }
 
+       protected function getDbType() {
+               return Maintenance::DB_NONE;
+       }
+
        public function execute() {
                if( !function_exists( 'parsekit_compile_file' ) ) {
                        $this->error( 'Requires PHP with parsekit', true );