Browse Source

Merge pull request #4703 from annando/fix-relocation

A relocation hadn't changed the hostname
pull/4707/head
Tobias Diekershoff 4 years ago committed by GitHub
parent
commit
752a9f4b08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      mod/admin.php

3
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");

Loading…
Cancel
Save