Fix productions web path - refs #4507

1.10.x
Imanol Losada 10 years ago
parent 7886ba95dd
commit e6cbdcca8f
  1. 5
      main/inc/lib/social.lib.php

@ -1041,10 +1041,9 @@ class SocialManager extends UserManager
*/
public static function display_productions($user_id)
{
$sysdir_array = UserManager::get_user_picture_path_by_id($user_id, 'system', true);
$sysdir = $sysdir_array['dir'];
$webdir_array = UserManager::get_user_picture_path_by_id($user_id, 'web', true);
$webdir = $webdir_array['dir'];
$sysdir = UserManager::getUserPathById($user_id, 'system');
$webdir = UserManager::getUserPathById($user_id, 'web');
if (!is_dir($sysdir)) {
mkdir($sysdir, api_get_permissions_for_new_directories(), true);

Loading…
Cancel
Save