]> git.mxchange.org Git - friendica.git/commitdiff
A relocation hadn't changed the hostname
authorMichael <heluecht@pirati.ca>
Wed, 28 Mar 2018 08:09:45 +0000 (08:09 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 28 Mar 2018 08:09:45 +0000 (08:09 +0000)
mod/admin.php

index e4d3b0a7518186a971a0de1d06e247a4f99c8612..3cbb70d3c54ec687b0b84b91c6320b72a81d4564 100644 (file)
@@ -871,8 +871,9 @@ function admin_page_site_post(App $a)
                update_table("gcontact", ['connect', 'addr'], $old_host, $new_host);
 
                // update config
-               $a->set_baseurl($new_url);
+               Config::set('system', 'hostname', parse_url($new_url,  PHP_URL_HOST));
                Config::set('system', 'url', $new_url);
+               $a->set_baseurl($new_url);
 
                // send relocate
                $users = q("SELECT `uid` FROM `user` WHERE `account_removed` = 0 AND `account_expired` = 0");