mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-23 15:36:52 +00:00
maintenance: Minor cleanup
* Call non static functions non statically * Remove unused getConfig() call Change-Id: I36d618c1f070b303c6d50966b23979d31fa8266a
This commit is contained in:
parent
f80076f5aa
commit
61152ae1ac
|
@ -39,14 +39,12 @@ class MigrateNamespace extends LoggedUpdateMaintenance {
|
|||
* @inheritDoc
|
||||
*/
|
||||
protected function doDBUpdates() {
|
||||
$config = $this->getConfig();
|
||||
|
||||
$this->output( "Running linter migrate namespace function, this may take a while\n" );
|
||||
|
||||
$batchSize = $this->getBatchSize();
|
||||
$sleep = (int)$this->getOption( 'sleep', 1 );
|
||||
|
||||
$dbw = self::getDB( DB_PRIMARY );
|
||||
$dbw = $this->getDB( DB_PRIMARY );
|
||||
if ( !$dbw->fieldExists( 'linter', 'linter_namespace', __METHOD__ ) ) {
|
||||
$this->output( "Run update.php to add linter_namespace field to the linter table.\n" );
|
||||
return false;
|
||||
|
|
|
@ -43,7 +43,7 @@ class MigrateTagTemplate extends LoggedUpdateMaintenance {
|
|||
$batchSize = $this->getBatchSize();
|
||||
$sleep = (int)$this->getOption( 'sleep', 1 );
|
||||
|
||||
$dbw = self::getDB( DB_PRIMARY );
|
||||
$dbw = $this->getDB( DB_PRIMARY );
|
||||
if ( !$dbw->fieldExists( 'linter', 'linter_template', __METHOD__ ) ) {
|
||||
$this->output( "Run update.php to add linter_tag and linter_template fields to the linter table.\n" );
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue