Update Maintenance scripts in extensions to use $this->requireExtension()

Bug: T152139
Change-Id: I9aead5ae7106150dfae749a91b6b403c94811f3f
This commit is contained in:
zoranzoki21 2018-01-28 17:33:37 +01:00 committed by Zoranzoki21
parent 767247c546
commit 55e9170492
2 changed files with 4 additions and 0 deletions

View file

@ -32,6 +32,8 @@ class UpdateCSS extends Maintenance {
public function __construct() {
parent::__construct();
$this->requireExtension( 'SyntaxHighlight' );
$this->addDescription( 'Generate CSS code for SyntaxHighlight_GeSHi' );
}

View file

@ -31,6 +31,8 @@ require_once "$IP/maintenance/Maintenance.php";
class UpdateLexerList extends Maintenance {
public function __construct() {
parent::__construct();
$this->requireExtension( 'SyntaxHighlight' );
$this->addDescription( 'Update list of lexers supported by SyntaxHighlight_GeSHi' );
}