diff options
author | friendica <info@friendica.com> | 2012-08-13 22:12:16 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-13 22:12:16 -0700 |
commit | 2a49460c7766d5868115689155e3b9595e5f36a2 (patch) | |
tree | 90572db5ee307c915ef99baf2624eb450fdfba9b /boot.php | |
parent | 6fcb3b44156a89feda9293c289175d0dec79cd80 (diff) | |
download | volse-hubzilla-2a49460c7766d5868115689155e3b9595e5f36a2.tar.gz volse-hubzilla-2a49460c7766d5868115689155e3b9595e5f36a2.tar.bz2 volse-hubzilla-2a49460c7766d5868115689155e3b9595e5f36a2.zip |
improvements in js localisation/translation
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |