Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix multimode value : check instance_name OR group_switch_value
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jan 13, 2016
1 parent a80a619 commit 01bd99a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/plugins/core.auth/class.CoreAuthLoader.php
Expand Up @@ -67,6 +67,9 @@ public function getAuthImpl()

$mLabel = ""; $sLabel = "";$separator = "";
$cacheMasters = true;
if(isSet($this->pluginConf["MULTI_MODE"]) && !isSet($this->pluginConf["MULTI_MODE"]["instance_name"])){
$this->pluginConf["MULTI_MODE"]["instance_name"] = $this->pluginConf["MULTI_MODE"]["group_switch_value"];
}
if ($this->pluginConf["MULTI_MODE"]["instance_name"] == "USER_CHOICE") {
$mLabel = $this->pluginConf["MULTI_MODE"]["MULTI_MASTER_LABEL"];
$sLabel = $this->pluginConf["MULTI_MODE"]["MULTI_SLAVE_LABEL"];
Expand Down

0 comments on commit 01bd99a

Please sign in to comment.