From 78d5e296b4bb25560ca2891e17876adcda905fdd Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Fri, 14 Jun 2019 17:45:49 -0700 Subject: [PATCH] Don't use Maintenance::$mDescription directly Change-Id: If28d9b7ee17ff559b35f3edc8b47ece298ea2c03 --- maintenance/ULSCompactLinksDisablePref.php | 4 ++-- scripts/compile-font-repo.php | 2 +- scripts/generate-font-test-page.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/maintenance/ULSCompactLinksDisablePref.php b/maintenance/ULSCompactLinksDisablePref.php index 99a68392..ec4109e5 100644 --- a/maintenance/ULSCompactLinksDisablePref.php +++ b/maintenance/ULSCompactLinksDisablePref.php @@ -21,8 +21,8 @@ class ULSCompactLinksDisablePref extends Maintenance { public function __construct() { parent::__construct(); $this->requireExtension( 'UniversalLanguageSelector' ); - $this->mDescription = 'Disables the UniversalLanguageSelector compact-language-links ' . - 'preference for appropriate users.'; + $this->addDescription( 'Disables the UniversalLanguageSelector compact-language-links ' . + 'preference for appropriate users.' ); $this->setBatchSize( 100 ); $this->addOption( 'really', 'Really change the preferences' ); diff --git a/scripts/compile-font-repo.php b/scripts/compile-font-repo.php index 28ef7ef3..1c4fcf11 100644 --- a/scripts/compile-font-repo.php +++ b/scripts/compile-font-repo.php @@ -18,7 +18,7 @@ require_once "$IP/maintenance/Maintenance.php"; class CompileFontRepo extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = 'Creates JavaScript font repository.'; + $this->addDescription( 'Creates JavaScript font repository.' ); } public function execute() { diff --git a/scripts/generate-font-test-page.php b/scripts/generate-font-test-page.php index 688dcdac..5f851969 100644 --- a/scripts/generate-font-test-page.php +++ b/scripts/generate-font-test-page.php @@ -18,7 +18,7 @@ require_once "$IP/maintenance/Maintenance.php"; class GenerateFontTestPage extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = 'Creates a HTML page with text for all fonts.'; + $this->addDescription( 'Creates a HTML page with text for all fonts.' ); } public function execute() {