Skip to content

Commit

Permalink
Merge pull request #23 from grawity/moodle-2.9-compat
Browse files Browse the repository at this point in the history
Port deprecated code to modern Moodle
  • Loading branch information
pitbulk committed Jun 7, 2015
2 parents 0ea447a + 329e68c commit 40edab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth/saml/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if(!file_exists('saml_config.php')) {
throw(new Exception('SAML config params are not set.'));
}
$contentfile = file_get_contents('saml_config.php');
$contentfile = file_get_contents('saml_config.php');
$saml_param = json_decode($contentfile);

if(!file_exists($saml_param->samllib.'/_autoload.php')) {
Expand Down Expand Up @@ -128,7 +128,7 @@
saml_error($err['login'], '?logout', $pluginconfig->samllogfile);
}
$username = $saml_attributes[$username_field][0];
$username = trim(textlib::strtolower($username));
$username = trim(core_text::strtolower($username));

$saml_courses = array();
if($pluginconfig->supportcourses != 'nosupport' && isset($pluginconfig->samlcourses)) {
Expand Down

0 comments on commit 40edab6

Please sign in to comment.