Browse Source

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 11 years ago
parent
commit
d12627f1cf
1 changed files with 4 additions and 0 deletions
  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']))
 	{