diff --git a/module/repo/config.php b/module/repo/config.php index 1b6be8c333..b0f0c00ca3 100644 --- a/module/repo/config.php +++ b/module/repo/config.php @@ -2,6 +2,8 @@ global $lang, $app; $app->loadLang('repo'); +$config->repo->notSetMenuVars = array('maintain', 'create', 'createrepo', 'edit', 'import'); + $config->program = new stdclass(); $config->program->suffix['c'] = "cpp"; $config->program->suffix['cpp'] = "cpp"; diff --git a/module/repo/model.php b/module/repo/model.php index e37d17658b..9fdb9474ac 100644 --- a/module/repo/model.php +++ b/module/repo/model.php @@ -78,7 +78,7 @@ class repoModel extends model } } - if(!in_array($this->app->methodName, array('maintain', 'create', 'createrepo', 'edit','import'))) common::setMenuVars('devops', $repoID); + if(!in_array($this->app->methodName, $this->config->repo->notSetMenuVars)) common::setMenuVars('devops', $repoID); if(!session_id()) session_start(); $this->session->set('repoID', $repoID); session_write_close();