diff --git a/auth/saml/index.php b/auth/saml/index.php index 8fdb33c..128835c 100755 --- a/auth/saml/index.php +++ b/auth/saml/index.php @@ -10,7 +10,10 @@ // We read saml parameters from a config file instead from the database // due we can not operate with the moodle database without load all // moodle session issue. - if (file_exists('saml_config.php')) { + if(file_exists($CFG->dataroot.'/saml_config.php')) { + $contentfile = file_get_contents($CFG->dataroot.'/saml_config.php'); + } + else if (file_exists('saml_config.php')) { $contentfile = file_get_contents('saml_config.php'); } else { throw(new Exception('SAML config params are not set.')); diff --git a/auth/saml/login.php b/auth/saml/login.php index 70ad4a7..e017161 100644 --- a/auth/saml/login.php +++ b/auth/saml/login.php @@ -1,7 +1,6 @@