From: Michael Vogel Date: Sat, 17 Oct 2015 13:26:11 +0000 (+0200) Subject: Automatically set the new configuration for the global directory when updating. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b75a3c894351b4e49cc53cbff2a312e40f7b6d13;p=friendica.git Automatically set the new configuration for the global directory when updating. --- diff --git a/update.php b/update.php index 06aab577a3..7c32f5819c 100644 --- a/update.php +++ b/update.php @@ -1648,3 +1648,14 @@ function update_1180() { return UPDATE_SUCCESS; } + +function update_1188() { + + if (strlen(get_config('system','directory_submit_url')) AND + !strlen(get_config('system','directory'))) { + set_config('system','directory', dirname(get_config('system','directory_submit_url'))); + del_config('system','directory_submit_url'); + } + + return UPDATE_SUCCESS; +}