From 55e9170492bb1005e799464c0f220ad48be35461 Mon Sep 17 00:00:00 2001 From: zoranzoki21 Date: Sun, 28 Jan 2018 17:33:37 +0100 Subject: [PATCH] Update Maintenance scripts in extensions to use $this->requireExtension() Bug: T152139 Change-Id: I9aead5ae7106150dfae749a91b6b403c94811f3f --- maintenance/updateCSS.php | 2 ++ maintenance/updateLexerList.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/maintenance/updateCSS.php b/maintenance/updateCSS.php index 2ec85383..56bf7350 100644 --- a/maintenance/updateCSS.php +++ b/maintenance/updateCSS.php @@ -32,6 +32,8 @@ class UpdateCSS extends Maintenance { public function __construct() { parent::__construct(); + + $this->requireExtension( 'SyntaxHighlight' ); $this->addDescription( 'Generate CSS code for SyntaxHighlight_GeSHi' ); } diff --git a/maintenance/updateLexerList.php b/maintenance/updateLexerList.php index e1f99aee..1937d856 100644 --- a/maintenance/updateLexerList.php +++ b/maintenance/updateLexerList.php @@ -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' ); }