Ver código fonte

This is TEMP, since the attachment dir path most likely
will be created on install/upgrade (it should be!)
and for the sake of not adding a custom one,
lets temporary hardcode the path

Signed-off-by: Suki <[email protected]>

Suki 12 anos atrás
pai
commit
d12627f1cf
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      Sources/Profile-Modify.php

+ 4 - 0
Sources/Profile-Modify.php

@@ -2676,6 +2676,10 @@ function profileSaveAvatarData(&$value)
 		$id_folder = 1;
 	}
 
+	// Temp, this is TEMP, since the attachment dir most likely will be created on install/upgrade and for the sake of not adding a custom one, lets temporary hardcode the path
+	global $boarddir;
+	$uploadDir = $boarddir . '/attachments';
+
 	$downloadedExternalAvatar = false;
 	if ($value == 'external' && allowedTo('profile_remote_avatar') && stripos($_POST['userpicpersonal'], 'http://') === 0 && strlen($_POST['userpicpersonal']) > 7 && !empty($modSettings['avatar_download_external']))
 	{