|
|
|
@ -1,17 +1,17 @@ |
|
|
|
|
<?php //$id: $
|
|
|
|
|
<?php |
|
|
|
|
/* For licensing terms, see /license.txt */ |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* This is the course creation library for Dokeos. |
|
|
|
|
* It contains functions to create a course. |
|
|
|
|
* Include/require it in your code to use its functionality. |
|
|
|
|
* |
|
|
|
|
* @package dokeos.library |
|
|
|
|
* @todo clean up horrible structure, script is unwieldy, for example easier way to deal with |
|
|
|
|
* different tool visibility settings: ALL_TOOLS_INVISIBLE, ALL_TOOLS_VISIBLE, CORE_TOOLS_VISIBLE... |
|
|
|
|
*/ |
|
|
|
|
* This is the course creation library for Chamilo. |
|
|
|
|
* Include/require it in your code for using its functionality. |
|
|
|
|
* |
|
|
|
|
* @package dokeos.library |
|
|
|
|
* @todo clean up horrible structure, script is unwieldy, for example easier way to deal with |
|
|
|
|
* different tool visibility settings: ALL_TOOLS_INVISIBLE, ALL_TOOLS_VISIBLE, CORE_TOOLS_VISIBLE... |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
require_once (api_get_path(LIBRARY_PATH).'database.lib.php'); |
|
|
|
|
require_once (api_get_path(LIBRARY_PATH).'mail.lib.inc.php'); |
|
|
|
|
require_once api_get_path(LIBRARY_PATH).'database.lib.php'; |
|
|
|
|
require_once api_get_path(LIBRARY_PATH).'mail.lib.inc.php'; |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
============================================================================== |
|
|
|
@ -254,7 +254,9 @@ function update_Db_course($courseDbName, $language = null) |
|
|
|
|
if (empty($language)) { |
|
|
|
|
$language = $language_interface; |
|
|
|
|
} |
|
|
|
|
$charset_clause = Database::make_charset_clause('UTF-8', $language); |
|
|
|
|
|
|
|
|
|
//$charset_clause = Database::make_charset_clause('UTF-8', $language); // A problematic choice, see Bug #825 |
|
|
|
|
$charset_clause = ' DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci'; |
|
|
|
|
|
|
|
|
|
if (!$_configuration['single_database']) |
|
|
|
|
{ |
|
|
|
|