X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupPreferences.php;h=bed3956a88cc2dd3baa57892ea9f52deae345b9d;hb=8d02d1d2900fa196bd11841111b5b3a339f6dca4;hp=a6399f66e6a17f3c311a4f436a24c059782357ff;hpb=c2cedf71ee1464f8b4c974906cbca4c8cd80a4e6;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupPreferences.php b/maintenance/cleanupPreferences.php index a6399f66e6..bed3956a88 100644 --- a/maintenance/cleanupPreferences.php +++ b/maintenance/cleanupPreferences.php @@ -34,7 +34,9 @@ require_once __DIR__ . '/Maintenance.php'; class CleanupPreferences extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = 'Clean up hidden preferences, removed preferences, and normalizes values'; + $this->addDescription( + 'Clean up hidden preferences, removed preferences, and normalizes values' + ); $this->setBatchSize( 50 ); $this->addOption( 'dry-run', 'Print debug info instead of actually deleting' ); $this->addOption( 'hidden', 'Drop hidden preferences ($wgHiddenPrefs)' ); @@ -99,9 +101,6 @@ class CleanupPreferences extends Maintenance { } } - /** - * - */ private function deleteByWhere( $dbw, $startMessage, $where ) { $this->output( $startMessage . "...\n" ); $total = 0;