diff --git a/main/inc/lib/add_course.lib.inc.php b/main/inc/lib/add_course.lib.inc.php index 1000cfbb24..a5de69e08b 100755 --- a/main/inc/lib/add_course.lib.inc.php +++ b/main/inc/lib/add_course.lib.inc.php @@ -471,15 +471,11 @@ class AddCourse TABLE_MAIN_GRADEBOOK_CERTIFICATE ); - include api_get_path( - SYS_CODE_PATH - ) . 'lang/english/create_course.inc.php'; - $file_to_include = api_get_path( - SYS_CODE_PATH - ) . 'lang/' . $language . '/create_course.inc.php'; + include_once api_get_path(SYS_CODE_PATH) . 'lang/english/trad4all.inc.php'; + $file_to_include = api_get_path(SYS_CODE_PATH) . 'lang/' . $language . '/trad4all.inc.php'; if (file_exists($file_to_include)) { - include $file_to_include; + include_once $file_to_include; } $visible_for_all = 1; diff --git a/main/install/install_db.inc.php b/main/install/install_db.inc.php index 81eb192261..80a1f493d2 100755 --- a/main/install/install_db.inc.php +++ b/main/install/install_db.inc.php @@ -88,10 +88,10 @@ $mysqlUserDb = $mysqlMainDb; // This parameter is needed to run a command line install of Chamilo (needed for Phing) if (!defined('CLI_INSTALLATION')) { - include api_get_path(SYS_LANG_PATH) . 'english/create_course.inc.php'; + include_once api_get_path(SYS_LANG_PATH) . 'english/trad4all.inc.php'; if ($languageForm != 'english') { - include api_get_path(SYS_LANG_PATH) . $languageForm . '/create_course.inc.php'; + include_once api_get_path(SYS_LANG_PATH) . $languageForm . '/trad4all.inc.php'; } } diff --git a/main/install/update-db-1.6.x-1.8.0.inc.php b/main/install/update-db-1.6.x-1.8.0.inc.php index 3dc71d9e2c..ae03098edf 100755 --- a/main/install/update-db-1.6.x-1.8.0.inc.php +++ b/main/install/update-db-1.6.x-1.8.0.inc.php @@ -71,11 +71,11 @@ if (defined('SYSTEM_INSTALLATION')) { /** * Update the databases "pre" migration */ - include '../lang/english/create_course.inc.php'; + include_once '../lang/english/trad4all.inc.php'; if ($languageForm != 'english') { // languageForm has been escaped in index.php - include '../lang/' . $languageForm . '/create_course.inc.php'; + include_once '../lang/' . $languageForm . '/trad4all.inc.php'; } //get the main queries list (m_q_list) diff --git a/main/install/update-db-1.8.0-1.8.2.inc.php b/main/install/update-db-1.8.0-1.8.2.inc.php index 10e5e0decf..99c9ec6faf 100755 --- a/main/install/update-db-1.8.0-1.8.2.inc.php +++ b/main/install/update-db-1.8.0-1.8.2.inc.php @@ -64,11 +64,11 @@ if (defined('SYSTEM_INSTALLATION')) { /** * Update the databases "pre" migration */ - include '../lang/english/create_course.inc.php'; + include_once '../lang/english/trad4all.inc.php'; if ($languageForm != 'english') { //languageForm has been escaped in index.php - include '../lang/' . $languageForm . '/create_course.inc.php'; + include_once '../lang/' . $languageForm . '/trad4all.inc.php'; } // Get the main queries list (m_q_list) diff --git a/main/install/update-db-1.8.2-1.8.3.inc.php b/main/install/update-db-1.8.2-1.8.3.inc.php index d19e93756d..126698e781 100755 --- a/main/install/update-db-1.8.2-1.8.3.inc.php +++ b/main/install/update-db-1.8.2-1.8.3.inc.php @@ -64,11 +64,11 @@ if (defined('SYSTEM_INSTALLATION')) { /** * Update the databases "pre" migration */ - include '../lang/english/create_course.inc.php'; + include_once '../lang/english/trad4all.inc.php'; if ($languageForm != 'english') { // languageForm has been escaped in index.php - include '../lang/'.$languageForm.'/create_course.inc.php'; + include_once '../lang/'.$languageForm.'/trad4all.inc.php'; } // get the main queries list (m_q_list) diff --git a/main/install/update-db-1.8.3-1.8.4.inc.php b/main/install/update-db-1.8.3-1.8.4.inc.php index 6e300e8048..b180aac379 100755 --- a/main/install/update-db-1.8.3-1.8.4.inc.php +++ b/main/install/update-db-1.8.3-1.8.4.inc.php @@ -64,11 +64,11 @@ if (defined('SYSTEM_INSTALLATION')) { /** * Update the databases "pre" migration */ - include '../lang/english/create_course.inc.php'; + include_once '../lang/english/trad4all.inc.php'; if ($languageForm != 'english') { // languageForm has been escaped in index.php - include '../lang/'.$languageForm.'/create_course.inc.php'; + include_once '../lang/'.$languageForm.'/trad4all.inc.php'; } //get the main queries list (m_q_list) diff --git a/main/install/update-db-1.8.4-1.8.5.inc.php b/main/install/update-db-1.8.4-1.8.5.inc.php index f76e351fe0..e95b7778af 100755 --- a/main/install/update-db-1.8.4-1.8.5.inc.php +++ b/main/install/update-db-1.8.4-1.8.5.inc.php @@ -67,11 +67,11 @@ if (defined('SYSTEM_INSTALLATION')) { /** * Update the databases "pre" migration */ - include '../lang/english/create_course.inc.php'; + include_once '../lang/english/trad4all.inc.php'; if ($languageForm != 'english') { // languageForm has been escaped in index.php - include '../lang/'.$languageForm.'/create_course.inc.php'; + include_once '../lang/'.$languageForm.'/trad4all.inc.php'; } //get the main queries list (m_q_list) diff --git a/main/install/update-db-1.8.5-1.8.6.inc.php b/main/install/update-db-1.8.5-1.8.6.inc.php index bdb88ba682..8c989a298d 100755 --- a/main/install/update-db-1.8.5-1.8.6.inc.php +++ b/main/install/update-db-1.8.5-1.8.6.inc.php @@ -68,11 +68,11 @@ if (defined('SYSTEM_INSTALLATION')) { /** * Update the databases "pre" migration */ - include '../lang/english/create_course.inc.php'; + include_once '../lang/english/trad4all.inc.php'; if ($languageForm != 'english') { // languageForm has been escaped in index.php - include '../lang/' . $languageForm . '/create_course.inc.php'; + include_once '../lang/' . $languageForm . '/trad4all.inc.php'; } // Get the main queries list (m_q_list) diff --git a/main/install/update-db-1.8.6-1.8.6.1.inc.php b/main/install/update-db-1.8.6-1.8.6.1.inc.php index 416cd191ff..426e04e5fc 100755 --- a/main/install/update-db-1.8.6-1.8.6.1.inc.php +++ b/main/install/update-db-1.8.6-1.8.6.1.inc.php @@ -67,11 +67,11 @@ if (defined('SYSTEM_INSTALLATION')) { /** * Update the databases "pre" migration */ - include '../lang/english/create_course.inc.php'; + include_once '../lang/english/trad4all.inc.php'; if ($languageForm != 'english') { //languageForm has been escaped in index.php - include '../lang/'.$languageForm.'/create_course.inc.php'; + include_once '../lang/'.$languageForm.'/trad4all.inc.php'; } //get the main queries list (m_q_list) diff --git a/main/install/update-db-1.8.6.1-1.8.6.2.inc.php b/main/install/update-db-1.8.6.1-1.8.6.2.inc.php index e4bad24269..6df0fb542c 100755 --- a/main/install/update-db-1.8.6.1-1.8.6.2.inc.php +++ b/main/install/update-db-1.8.6.1-1.8.6.2.inc.php @@ -67,11 +67,11 @@ if (defined('SYSTEM_INSTALLATION')) { /** * Update the databases "pre" migration */ - include '../lang/english/create_course.inc.php'; + include_once '../lang/english/trad4all.inc.php'; if ($languageForm != 'english') { // languageForm has been escaped in index.php - include '../lang/'.$languageForm.'/create_course.inc.php'; + include_once '../lang/'.$languageForm.'/trad4all.inc.php'; } // Get the main queries list (m_q_list) diff --git a/main/install/update-db-1.8.6.2-1.8.7.inc.php b/main/install/update-db-1.8.6.2-1.8.7.inc.php index 2cd1968d49..b407645a09 100755 --- a/main/install/update-db-1.8.6.2-1.8.7.inc.php +++ b/main/install/update-db-1.8.6.2-1.8.7.inc.php @@ -68,11 +68,11 @@ if (defined('SYSTEM_INSTALLATION')) { /** * Update the databases "pre" migration */ - include '../lang/english/create_course.inc.php'; + include_once '../lang/english/trad4all.inc.php'; if ($languageForm != 'english') { // languageForm has been escaped in index.php - include '../lang/' . $languageForm . '/create_course.inc.php'; + include_once '../lang/' . $languageForm . '/trad4all.inc.php'; } // Get the main queries list (m_q_list) diff --git a/main/install/update-db-1.8.7-1.8.8.inc.php b/main/install/update-db-1.8.7-1.8.8.inc.php index 8e7a49d813..b085a44aa0 100755 --- a/main/install/update-db-1.8.7-1.8.8.inc.php +++ b/main/install/update-db-1.8.7-1.8.8.inc.php @@ -67,11 +67,11 @@ if (defined('SYSTEM_INSTALLATION')) { /** * Update the databases "pre" migration */ - include '../lang/english/create_course.inc.php'; + include_once '../lang/english/trad4all.inc.php'; if ($languageForm != 'english') { // languageForm has been escaped in index.php - include '../lang/'.$languageForm.'/create_course.inc.php'; + include_once '../lang/'.$languageForm.'/trad4all.inc.php'; } // Get the main queries list (m_q_list) diff --git a/main/install/update-db-1.8.8-1.9.0.inc.php b/main/install/update-db-1.8.8-1.9.0.inc.php index 5ef396e82f..bd0e37b5b3 100755 --- a/main/install/update-db-1.8.8-1.9.0.inc.php +++ b/main/install/update-db-1.8.8-1.9.0.inc.php @@ -66,11 +66,11 @@ if (defined('SYSTEM_INSTALLATION')) { /** * Update the databases "pre" migration */ - include '../lang/english/create_course.inc.php'; + include_once '../lang/english/trad4all.inc.php'; if ($languageForm != 'english') { // languageForm has been escaped in index.php - include '../lang/'.$languageForm.'/create_course.inc.php'; + include_once '../lang/'.$languageForm.'/trad4all.inc.php'; } // Get the main queries list (m_q_list) diff --git a/main/install/update-db-1.9.0-1.10.0.inc.php b/main/install/update-db-1.9.0-1.10.0.inc.php index cd8e79cbe1..aa2172b228 100644 --- a/main/install/update-db-1.9.0-1.10.0.inc.php +++ b/main/install/update-db-1.9.0-1.10.0.inc.php @@ -57,11 +57,11 @@ if (defined('SYSTEM_INSTALLATION')) { /** * Update the databases "pre" migration */ - include '../lang/english/create_course.inc.php'; + include_once '../lang/english/trad4all.inc.php'; if ($languageForm != 'english') { // languageForm has been escaped in index.php - include '../lang/' . $languageForm . '/create_course.inc.php'; + include_once '../lang/' . $languageForm . '/trad4all.inc.php'; } // Get the main queries list (m_q_list)