From 9bfc7bf5849e2fea27329df1a886c069ff0c96f3 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 28 Mar 2018 08:09:45 +0000 Subject: [PATCH] A relocation hadn't changed the hostname --- mod/admin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/admin.php b/mod/admin.php index e4d3b0a751..3cbb70d3c5 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -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"); -- 2.39.5