From 2a49460c7766d5868115689155e3b9595e5f36a2 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 13 Aug 2012 22:12:16 -0700 Subject: improvements in js localisation/translation --- boot.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 30d49539c..88b31efc8 100644 --- a/boot.php +++ b/boot.php @@ -749,9 +749,14 @@ if(! function_exists('check_config')) { // than the currently visited url, store the current value accordingly. // "Radically different" ignores common variations such as http vs https // and www.example.com vs example.com. + // We will only change the url to an ip address if there is no existing setting - if((! x($url)) || (! link_compare($url,$a->get_baseurl()))) + 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()); + + if($build != DB_UPDATE_VERSION) { $stored = intval($build); -- cgit v1.2.3