r54656 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54655‎ | r54656 | r54657 >
Date:13:31, 9 August 2009
Author:ialex
Status:ok
Tags:
Comment:
findhooks and syntaxChecker don't need DB access :)
Modified paths:
  • /trunk/phase3/maintenance/findhooks.php (modified) (history)
  • /trunk/phase3/maintenance/syntaxChecker.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/syntaxChecker.php
@@ -33,6 +33,10 @@
3434 $this->addOption( 'with-extensions', 'Also recurse the extensions folder' );
3535 }
3636
 37+ protected function getDbType() {
 38+ return Maintenance::DB_NONE;
 39+ }
 40+
3741 public function execute() {
3842 if( !function_exists( 'parsekit_compile_file' ) ) {
3943 $this->error( 'Requires PHP with parsekit', true );
Index: trunk/phase3/maintenance/findhooks.php
@@ -43,6 +43,10 @@
4444 $this->addOption( 'online', 'Check against mediawiki.org hook documentation' );
4545 }
4646
 47+ protected function getDbType() {
 48+ return Maintenance::DB_NONE;
 49+ }
 50+
4751 public function execute() {
4852 global $IP;
4953

Status & tagging log