From 02287334681ad8d424aa22d643d06624885b2697 Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Wed, 22 Sep 2010 23:52:36 +0300 Subject: [PATCH] Task #1765 - Careful start of removing the useless encoding management layer within the LP tool. --- main/newscorm/learnpath.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 5ed32a5e99..166c0ecc9a 100755 --- a/main/newscorm/learnpath.class.php +++ b/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'];