Преглед изворни кода

Testing with phing - BT#821

Guillaume Viguier пре 15 година
родитељ
комит
a1f2a35988
1 измењених фајлова са 6 додато и 3 уклоњено
  1. 6 3
      main/install/install_db.inc.php

+ 6 - 3
main/install/install_db.inc.php

@@ -110,10 +110,13 @@ if ($mysqlUserDb != $mysqlMainDb) {
 	}
 }
 
-include api_get_path(SYS_LANG_PATH).'english/create_course.inc.php';
+// 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';
 
-if ($languageForm != 'english') {
-	include api_get_path(SYS_LANG_PATH).$languageForm.'/create_course.inc.php';
+	if ($languageForm != 'english') {
+		include api_get_path(SYS_LANG_PATH).$languageForm.'/create_course.inc.php';
+	}
 }
 
 /**