Don't use Maintenance::$mDescription directly

Change-Id: If28d9b7ee17ff559b35f3edc8b47ece298ea2c03
This commit is contained in:
Max Semenik
2019-06-14 17:45:49 -07:00
parent 78b30ddae7
commit 78d5e296b4
3 changed files with 4 additions and 4 deletions

View File

@@ -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' );

View File

@@ -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() {

View File

@@ -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() {