Kaynağa Gözat

Minor - style code.

Julio Montoya 11 yıl önce
ebeveyn
işleme
81689da938

+ 1 - 1
main/cron/import_csv.php

@@ -621,7 +621,7 @@ class ImportCsv
                 $chamiloUserName = $row['UserName'];
                 $chamiloCourseCode = $row['CourseCode'];
                 //$systemSessionId= $row['SessionID'];
-                $chamiloSessionId= $row['SessionID'];
+                $chamiloSessionId = $row['SessionID'];
 
                 //$sessionId = SessionManager::get_session_id_from_original_id($systemSessionId, $this->extraFieldIdNameList['session']);
                 $sessionInfo = api_get_session_info($chamiloSessionId);

+ 7 - 7
main/newscorm/resourcelinker.inc.php

@@ -1602,13 +1602,12 @@ function rl_get_html_resource_link($course_code, $type, $id, $style='', $new_win
  * In each case, we query the corresponding table for information and build the link
  * with that information.
  * @author	Yannick Warnier <ywarnier@beeznest.org> - rebranding based on previous work (display_addedresource_link_in_learnpath())
- * @param	string	Course code
- * @param	integer	The learning path ID (in lp table)
- * @param	integer	The database ID for that item in the lp_item table
- * @param id          - that is the correspondent id in the mirror tool (like Agenda item 2)
- * @param id_in_path  - the unique index in the items table
+ * @param	int	Course code
+ * @param	int The learning path ID (in lp table)
+ * @param   int id_in_path  - the unique index in the items table
  */
-function rl_get_resource_link_for_learnpath($course_id, $learnpath_id, $id_in_path) {
+function rl_get_resource_link_for_learnpath($course_id, $learnpath_id, $id_in_path)
+{
     $tbl_lp_item 	= Database::get_course_table(TABLE_LP_ITEM);
 
     $course_info = api_get_course_info_by_id($course_id);
@@ -1746,7 +1745,8 @@ function rl_get_resource_link_for_learnpath($course_id, $learnpath_id, $id_in_pa
  * @param string 	The tool type (using constants declared in main_api.lib.php)
  * @param integer 	The resource ID
  */
-function rl_get_resource_name($course_code, $learnpath_id, $id_in_path) {
+function rl_get_resource_name($course_code, $learnpath_id, $id_in_path)
+{
     $_course = Database::get_course_info($course_code);
     $course_id = $_course['real_id'];
     $tbl_lp_item = Database::get_course_table(TABLE_LP_ITEM);