findhooks and syntaxChecker don't need DB access :)

This commit is contained in:
Alexandre Emsenhuber 2009-08-09 13:31:15 +00:00
parent 3b7500e314
commit 7fb21fa102
2 changed files with 8 additions and 0 deletions

View 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;

View 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 );