Browse Source

Add missing parameter

Julio 9 years ago
parent
commit
f068ef525f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      main/document/document.php
  2. 1 1
      main/inc/lib/usermanager.lib.php

+ 1 - 1
main/document/document.php

@@ -352,7 +352,7 @@ switch ($action) {
                 );
             }
             $parent_id = $document_info['parent_id'];
-            $my_path = UserManager::getUserPathById(api_get_user_id());
+            $my_path = UserManager::getUserPathById(api_get_user_id(), 'system');
             $user_folder = $my_path.'my_files/';
             $my_path = null;
 

+ 1 - 1
main/inc/lib/usermanager.lib.php

@@ -581,7 +581,7 @@ class UserManager
         a user has 4 different sized photos to be deleted. */
         $user_info = api_get_user_info($user_id);
         if (strlen($user_info['picture_uri']) > 0) {
-            $path = self::getUserPathById($user_id);
+            $path = self::getUserPathById($user_id, 'system');
             $img_path = $path.$user_info['picture_uri'];
             if (file_exists($img_path))
                 unlink($img_path);