Task #1765 - Careful start of removing the useless encoding management layer within the LP tool.

skala
Ivan Tcholakov 14 years ago
parent 9488fb1620
commit 0228733468
  1. 3
      main/newscorm/learnpath.class.php

@ -80,6 +80,7 @@ class learnpath {
* @return boolean True on success, false on error
*/
public function __construct($course, $lp_id, $user_id) {
$this->encoding = api_get_system_encoding(); // Chamilo 1.8.8: We intend always to use the system encoding.
//check params
//check course code
if ($this->debug>0){error_log('New LP - In learnpath::__construct('.$course.','.$lp_id.','.$user_id.')',0);}
@ -123,7 +124,7 @@ class learnpath {
$row = Database::fetch_array($res);
$this->type = $row['lp_type'];
$this->name = stripslashes($row['name']);
$this->encoding = $row['default_encoding'];
//$this->encoding = $row['default_encoding']; // Chamilo 1.8.8: We intend not to use 'default_encoding' field anymore.
$this->proximity = $row['content_local'];
$this->theme = $row['theme'];
$this->maker = $row['content_maker'];

Loading…
Cancel
Save