diff --git a/auth/shibboleth/index_form.html b/auth/shibboleth/index_form.html
index 4d7e7df518c..144c1fd7dae 100644
--- a/auth/shibboleth/index_form.html
+++ b/auth/shibboleth/index_form.html
@@ -71,8 +71,8 @@ if ($show_instructions) {
registerauth == 'email') {
- if (!empty($CFG->auth_instructions)) {
- echo format_text($CFG->auth_instructions);
+ if (!empty($config->auth_instructions)) {
+ echo format_text($config->auth_instructions);
} else {
print_string("loginsteps", "", "signup.php");
} ?>
@@ -82,14 +82,14 @@ if ($show_instructions) {
registerauth)) {
- echo format_text($CFG->auth_instructions); ?>
+ echo format_text($config->auth_instructions); ?>
auth_instructions);
+ echo format_text($config->auth_instructions);
} ?>
diff --git a/auth/shibboleth/login.php b/auth/shibboleth/login.php
index 721af8079f9..2ed931a21c8 100644
--- a/auth/shibboleth/login.php
+++ b/auth/shibboleth/login.php
@@ -22,17 +22,13 @@
$loginurl = (!empty($CFG->alternateloginurl)) ? $CFG->alternateloginurl : '';
-
- if (!empty($CFG->registerauth) or is_enabled_auth('none') or !empty($CFG->auth_instructions)) {
+ $config = get_config('auth_shibboleth');
+ if (!empty($CFG->registerauth) or is_enabled_auth('none') or !empty($config->auth_instructions)) {
$show_instructions = true;
} else {
$show_instructions = false;
}
- // Set SAML domain cookie
- $config = get_config('auth_shibboleth');
-
-
$IdPs = get_idp_list($config->organization_selection);
if (isset($_POST['idp']) && isset($IdPs[$_POST['idp']])){
$selectedIdP = $_POST['idp'];