Browse Source

Minor - format code.

jmontoya 9 years ago
parent
commit
0d2152164a
3 changed files with 6 additions and 4 deletions
  1. 3 1
      main/newscorm/learnpath.class.php
  2. 2 2
      main/newscorm/scorm.class.php
  3. 1 1
      main/webservices/lp.php

+ 3 - 1
main/newscorm/learnpath.class.php

@@ -266,7 +266,9 @@ class learnpath
                             error_log(
                                 'New LP - learnpath::__construct() - ' .
                                 'aicc object with id ' . $my_item_id .
-                                ' set in items[]', 0);
+                                ' set in items[]',
+                                0
+                            );
                         }
                     }
                     break;

+ 2 - 2
main/newscorm/scorm.class.php

@@ -529,9 +529,9 @@ class scorm extends learnpath
             error_log('New LP - import_package() - zip file path = ' . $zip_file_path . ', zip file name = ' . $zip_file_name, 0);
         }
 
-        $course_rel_dir     = api_get_course_path($courseInfo['code']).'/scorm'; // scorm dir web path starting from /courses
+        $course_rel_dir = api_get_course_path($courseInfo['code']).'/scorm'; // scorm dir web path starting from /courses
         $course_sys_dir = api_get_path(SYS_COURSE_PATH).$course_rel_dir; // Absolute system path for this course.
-        $current_dir        = api_replace_dangerous_char(trim($current_dir)); // Current dir we are in, inside scorm/
+        $current_dir = api_replace_dangerous_char(trim($current_dir)); // Current dir we are in, inside scorm/
 
         if ($this->debug > 1) {
             error_log( 'New LP - import_package() - current_dir = ' . $current_dir, 0);

+ 1 - 1
main/webservices/lp.php

@@ -162,7 +162,7 @@ function WSImportLP($params)
 
     $sessionId = 0;
     if (!empty($sessionIdName) && !empty($sessionIdValue)) {
-        $sessionId = SessionManager::get_session_id_from_original_id(
+        $sessionId = SessionManager::getSessionIdFromOriginalId(
             $sessionIdValue,
             $sessionIdName
         );