From d5a6841365ea2be026e0ff0cf9f9e241727c7235 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Thu, 13 Jan 2022 05:58:51 +0000 Subject: [PATCH] * Midify construct function. --- module/sonarqube/control.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/module/sonarqube/control.php b/module/sonarqube/control.php index e9c27fea1f..e25e7cbedd 100644 --- a/module/sonarqube/control.php +++ b/module/sonarqube/control.php @@ -11,6 +11,20 @@ */ class sonarqube extends control { + /** + * The mr constructor. + * @param string $moduleName + * @param string $methodName + */ + public function __construct($moduleName = '', $methodName = '') + { + parent::__construct($moduleName, $methodName); + + /* This is essential when changing tab(menu) from gitlab to repo. */ + /* Optional: common::setMenuVars('devops', $this->session->repoID); */ + $this->loadModel('ci')->setMenu(); + } + /** * Browse sonarqube. *