Skip to content

Commit

Permalink
reindent (config.php)
Browse files Browse the repository at this point in the history
git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@224 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
Dave Goodwin committed Nov 3, 2011
1 parent 18d589a commit e453b33
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions config.php
Expand Up @@ -52,11 +52,11 @@ function _debug($string, $up = 0) {
}

if(!isset($xerte_toolkits_site)) {
//check if using external authentication integration and if not start session as usual
if(empty($_SESSION)) {
session_start();
$_SESSION['xertetoolkits'] = true;
}
//check if using external authentication integration and if not start session as usual
if(empty($_SESSION)) {
session_start();
$_SESSION['xertetoolkits'] = true;
}
// create new generic object to hold all our config stuff in....
$xerte_toolkits_site = new StdClass();

Expand All @@ -71,7 +71,6 @@ function _debug($string, $up = 0) {
require_once(dirname(__FILE__) . '/website_code/php/database_library.php');

$row = db_query_one("SELECT * FROM {$xerte_toolkits_site->database_table_prefix}sitedetails");

if(!$row) {
die("Error talking to database; perhaps it is offline?");
}
Expand All @@ -87,9 +86,7 @@ function _debug($string, $up = 0) {
*/

if($row['integration_config_path']!=""){

require_once($row['integration_config_path']);

}

/**
Expand Down

0 comments on commit e453b33

Please sign in to comment.