Commit 2db711ad authored by Robert Lyon's avatar Robert Lyon

Bug 1847345: Only mention we need to update simplesamlphp if installed

behatnotneeded

Change-Id: Id54baa5be70dc81071a918762dd42b5c73548e7b
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 3aa6c65e
......@@ -1484,11 +1484,12 @@ function auth_saml_openssl_x509_fingerprint($cert, $hash) {
$bin = base64_decode($cert);
return hash($hash, $bin);
}
$discofileexists = false;
if (file_exists(get_config('docroot') . 'auth/saml/extlib/simplesamlphp/lib/SimpleSAML/XHTML/IdPDisco.php')) {
require_once(get_config('docroot') . 'auth/saml/extlib/simplesamlphp/lib/SimpleSAML/XHTML/IdPDisco.php');
$discofileexists = true;
}
if (class_exists('SimpleSAML\XHTML\IdPDisco')) {
if ($discofileexists && class_exists('SimpleSAML\XHTML\IdPDisco')) {
class PluginAuthSaml_IdPDisco extends SimpleSAML\XHTML\IdPDisco
{
......@@ -1521,7 +1522,7 @@ if (class_exists('SimpleSAML\XHTML\IdPDisco')) {
}
}
}
else {
else if ($discofileexists) {
global $SESSION;
$SESSION->add_msg_once(get_string('errorupdatelib', 'auth.saml'), 'error', false);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment