X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=ccff45f7343295d6b4c29648febce22a55e3735c;hb=4dfea76434d37e5a89b39122ec42b8580366ed50;hp=c80da23529a5f5b9762d9bb826a48955e76826a7;hpb=fb0ed18a430aff3fbffdaab43c3d15a7f3a822ec;p=friendica.git diff --git a/boot.php b/boot.php index c80da23529..ccff45f734 100644 --- a/boot.php +++ b/boot.php @@ -1548,9 +1548,9 @@ function check_url(App &$a) { // We will only change the url to an ip address if there is no existing setting if(! x($url)) - $url = set_config('system','url',$a->get_baseurl()); - if((! link_compare($url,$a->get_baseurl())) && (! preg_match("/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/",$a->get_hostname))) - $url = set_config('system','url',$a->get_baseurl()); + $url = set_config('system','url',App::get_baseurl()); + if((! link_compare($url,App::get_baseurl())) && (! preg_match("/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/",$a->get_hostname))) + $url = set_config('system','url',App::get_baseurl()); return; }