]> git.mxchange.org Git - friendica.git/commitdiff
Automatically set the new configuration for the global directory when updating.
authorMichael Vogel <icarus@dabo.de>
Sat, 17 Oct 2015 13:26:11 +0000 (15:26 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 17 Oct 2015 13:26:11 +0000 (15:26 +0200)
update.php

index 06aab577a35609f5dccc38f5c6f845bac1e52fcf..7c32f5819c35ba7aa905a23f1640932fc0a8d268 100644 (file)
@@ -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;
+}