From 53a47e5f2fe59b64f89a9c8c38eb66bbce48b02b Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Fri, 8 Apr 2016 12:00:39 +0200 Subject: [PATCH] Remove use of "rel" in function getUserPathById --- main/inc/lib/usermanager.lib.php | 5 +---- .../CoreBundle/Component/Editor/Driver/PersonalDriver.php | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/main/inc/lib/usermanager.lib.php b/main/inc/lib/usermanager.lib.php index 9acc998d5a..f501099802 100755 --- a/main/inc/lib/usermanager.lib.php +++ b/main/inc/lib/usermanager.lib.php @@ -1425,7 +1425,7 @@ class UserManager * function will attempt to create it. Probably not the right place to do it * but at least it avoids headaches in many other places. * @param integer $id User ID - * @param string $type Type of path to return (can be 'system', 'web', 'rel', 'last') + * @param string $type Type of path to return (can be 'system', 'web', 'last') * @return string User folder path (i.e. /var/www/chamilo/app/upload/users/1/1/) */ public static function getUserPathById($id, $type) @@ -1459,9 +1459,6 @@ class UserManager case 'web': // Base: absolute web path. $userPath = api_get_path(WEB_UPLOAD_PATH).$userPath; break; - case 'rel': // Relative to the document root (e.g. app/upload/users/1/13/) - $userPath = api_get_path(REL_UPLOAD_PATH).$userPath; - break; case 'last': // Only the last part starting with users/ break; } diff --git a/src/Chamilo/CoreBundle/Component/Editor/Driver/PersonalDriver.php b/src/Chamilo/CoreBundle/Component/Editor/Driver/PersonalDriver.php index 4da3cf77cc..823d6cc7f9 100644 --- a/src/Chamilo/CoreBundle/Component/Editor/Driver/PersonalDriver.php +++ b/src/Chamilo/CoreBundle/Component/Editor/Driver/PersonalDriver.php @@ -44,8 +44,7 @@ class PersonalDriver extends Driver implements DriverInterface // Adding user personal files $dir = \UserManager::getUserPathById($userId, 'system'); - - $dirWeb = \UserManager::getUserPathById($userId, 'rel'); + $dirWeb = \UserManager::getUserPathById($userId, 'web'); $driver = array( 'driver' => 'PersonalDriver',