Browse Source

Fix #1376

Signed-off-by: John Rayes <[email protected]>
John Rayes 10 years ago
parent
commit
8e9a6c3227
1 changed files with 4 additions and 0 deletions
  1. 4 0
      other/upgrade.php

+ 4 - 0
other/upgrade.php

@@ -1028,7 +1028,11 @@ function WelcomeLogin()
 	if(!is_writable($custom_av_dir))
 		return throw_error(sprintf('The directory: %1$s has to be writable to continue the upgrade. Please make sure permissions are correctly set to allow this.', $custom_av_dir));
 	elseif ($need_settings_update)
+	{
+		if (!function_exists('cache_put_data'))
+			require_once($sourcedir . '/Load.php');
 		updateSettings(array('custom_avatar_dir' => $custom_av_dir));
+	}
 
 	require_once($sourcedir . '/Security.php');