浏览代码

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

Ivan Tcholakov 14 年之前
父节点
当前提交
0228733468
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      main/newscorm/learnpath.class.php

+ 2 - 1
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'];