Minor cosmetic changes

skala
Julio Montoya 13 years ago
parent 0b810b4b93
commit cef17ede38
  1. 14
      main/newscorm/learnpath.class.php

@ -61,23 +61,17 @@ class learnpath {
public $user_id; //ID of the user that is viewing/using the course public $user_id; //ID of the user that is viewing/using the course
public $update_queue = array(); public $update_queue = array();
public $scorm_debug = 0; public $scorm_debug = 0;
public $arrMenu = array(); // Array for the menu items. public $arrMenu = array(); // Array for the menu items.
public $debug = 0; // Logging level. public $debug = 0; // Logging level.
public $lp_session_id = 0; public $lp_session_id = 0;
public $lp_view_session_id = 0; // The specific view might be bound to a session. public $lp_view_session_id = 0; // The specific view might be bound to a session.
public $prerequisite = 0; public $prerequisite = 0;
public $use_max_score = 1; // 1 or 0 public $use_max_score = 1; // 1 or 0
public $created_on = ''; public $created_on = '';
public $modified_on = ''; public $modified_on = '';
public $publicated_on = ''; public $publicated_on = '';
public $expired_on = ''; public $expired_on = '';
public $ref = null; public $ref = null;
public $course_int_id; public $course_int_id;
public function get_course_int_id() { public function get_course_int_id() {
@ -1354,8 +1348,7 @@ class learnpath {
* @param string Zip file name * @param string Zip file name
* @return string Zip file path (or false on error) * @return string Zip file path (or false on error)
*/ */
public function export_lp($type, $course, $id, $zipname) { public function export_lp($type, $course, $id, $zipname) {
$course_id = api_get_course_int_id();
//if ($this->debug > 0) { error_log('New LP - In learnpath::export_lp()', 0); } //if ($this->debug > 0) { error_log('New LP - In learnpath::export_lp()', 0); }
if (empty($type) || empty($course) || empty($id) || empty($zipname)) { if (empty($type) || empty($course) || empty($id) || empty($zipname)) {
return false; return false;
@ -3594,7 +3587,7 @@ class learnpath {
} }
if (is_object($this->items[$item])) { if (is_object($this->items[$item])) {
$prereq_string = $this->items[$item]->get_prereq_string(); $prereq_string = $this->items[$item]->get_prereq_string();
if (empty ($prereq_string)) { if (empty($prereq_string)) {
return true; return true;
} }
// Clean spaces. // Clean spaces.
@ -5038,7 +5031,6 @@ class learnpath {
); );
} }
$this->tree_array($arrLP); $this->tree_array($arrLP);
$arrLP = $this->arrMenu; $arrLP = $this->arrMenu;
unset ($this->arrMenu); unset ($this->arrMenu);

Loading…
Cancel
Save