]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Merge pull request #2045 from annando/1511-dirfind-addr
[friendica.git] / update.php
index 35aaff2c064eec7a9ed0cdb20e748ffb51dc63b1..33b4560c09a4981f3ea17e174f7ce2bd2fd8dde6 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define( 'UPDATE_VERSION' , 1183 );
+define( 'UPDATE_VERSION' , 1190 );
 
 /**
  *
@@ -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;
+}