コード例 #1
0
ファイル: claroline.lib.php プロジェクト: rhertzog/lcs
 /**
  * Initialize the database for claro_sql_* legacy code
  * @return void
  * @throws Exception when the database connection cannot be created
  * @deprecated since 1.10
  */
 public static function initMainDatabase()
 {
     if (!self::$db) {
         self::$db = self::getDatabase()->getDbLink();
     }
     if ($GLOBALS['statsDbName'] == '') {
         $GLOBALS['statsDbName'] = get_conf('mainDbName');
     }
 }