findhooks and syntaxChecker don't need DB access :)
This commit is contained in:
parent
3b7500e314
commit
7fb21fa102
2 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue