]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Merge pull request #1968 from annando/1510-directory-configuration
[friendica.git] / update.php
index 5b0b4cd25117de503a10529e88c9a0714deaa460..7c32f5819c35ba7aa905a23f1640932fc0a8d268 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define( 'UPDATE_VERSION' , 1182 );
+define( 'UPDATE_VERSION' , 1189 );
 
 /**
  *
@@ -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;
+}