[svn r10086] use $_configuration array for the databases

skala
Patrick Cool 19 years ago
parent 48285abda4
commit e32fe6f99c
  1. 12
      main/inc/lib/database.lib.php

@ -165,28 +165,32 @@ class Database
*/
function get_main_database()
{
return $GLOBALS["mainDbName"];
global $_configuration;
return $_configuration['main_database'];
}
/**
* Returns the name of the Dokeos statistics database.
*/
function get_statistic_database()
{
return $GLOBALS["statsDbName"];
global $_configuration;
return $_configuration['statistics_database'];
}
/**
* Returns the name of the Dokeos SCORM database.
*/
function get_scorm_database()
{
return $GLOBALS["scormDbName"];
global $_configuration;
return $_configuration['scorm_database'];
}
/**
* Returns the name of the database where all the personal stuff of the user is stored
*/
function get_user_personal_database()
{
return $GLOBALS["user_personal_database"];
global $_configuration;
return $_configuration['user_personal_database'];
}
/**
* Returns the name of the main Dokeos database.

Loading…
Cancel
Save