Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
pitbulk committed Jul 21, 2015
1 parent b9867ae commit 9eb66d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion auth/saml/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.'));
Expand Down
3 changes: 1 addition & 2 deletions auth/saml/login.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

include_once("/var/www/onelogindemo/moodle29/config.php");
#include_once("../../config.php");
include_once("../../config.php");

global $CFG, $PAGE, $OUTPUT;

Expand Down

0 comments on commit 9eb66d1

Please sign in to comment.