Skip to content

Commit

Permalink
config.php - fix up to work better with moodle, I think
Browse files Browse the repository at this point in the history
git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@315 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
Dave Goodwin committed Apr 29, 2012
1 parent ce130ed commit 6c56e45
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config.php
Expand Up @@ -140,8 +140,9 @@
//$xerte_toolkits_site->authentication_method = 'Db';
//$xerte_toolkits_site->authentication_method = 'Static';
//$xerte_toolkits_site->authentication_method = "Moodle";
if($xerte_toolkits_site->authentication_method !== 'Moodle') {
session_start();

if(isset($_SESSION['integrate_with_moodle']) && $_SESSION['integrate_with_moodle'] == true) {
// skip session_start()
}
session_start();
}

0 comments on commit 6c56e45

Please sign in to comment.