Procházet zdrojové kódy

Fix #1376

Signed-off-by: John Rayes <[email protected]>
John Rayes před 10 roky
rodič
revize
8e9a6c3227
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  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');