jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/330461 )

Change subject: Update Maintenance scripts to use $this->requireExtension()
......................................................................


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

Bug: T152139
Change-Id: I637bbe9d09386f2bd20cfa278c6dec431eb8ef82
---
M maintenance/initBackends.php
M maintenance/rebuildIndex.php
2 files changed, 5 insertions(+), 0 deletions(-)

Approvals:
  TTO: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/maintenance/initBackends.php b/maintenance/initBackends.php
index ce3b603..fe551d9 100644
--- a/maintenance/initBackends.php
+++ b/maintenance/initBackends.php
@@ -5,6 +5,10 @@
 require_once( "$IP/maintenance/Maintenance.php" );
 
 class initBackends extends Maintenance {
+       public function __construct() {
+               parent::__construct();
+               $this->requireExtension( 'BlueSpiceExtendedSearch' );
+       }
 
        public function execute() {
                $this->output( 'This will delete and recreate all registered 
indices! Starting in ... ' );
diff --git a/maintenance/rebuildIndex.php b/maintenance/rebuildIndex.php
index 1fad096..2bbfc50 100644
--- a/maintenance/rebuildIndex.php
+++ b/maintenance/rebuildIndex.php
@@ -11,6 +11,7 @@
        public function __construct() {
                parent::__construct();
                $this->addOption( 'sources', "Only these sources will be 
re-indexed. Need to be specified in form of '<index>/<source>'", false, true );
+               $this->requireExtension( 'BlueSpiceExtendedSearch' );
        }
 
        public function execute() {

-- 
To view, visit https://gerrit.wikimedia.org/r/330461
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I637bbe9d09386f2bd20cfa278c6dec431eb8ef82
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/BlueSpiceExtendedSearch
Gerrit-Branch: master
Gerrit-Owner: Georggi199 <bmp2...@gmail.com>
Gerrit-Reviewer: Filip <r...@protonmail.com>
Gerrit-Reviewer: Legoktm <lego...@member.fsf.org>
Gerrit-Reviewer: Phantom42 <nikita...@gmail.com>
Gerrit-Reviewer: TTO <at.li...@live.com.au>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to