From 70c0beb857d879b8c2c74ac0922f82b37717c989 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 29 Aug 2013 16:46:22 -0700 Subject: block attempts to set the baseurl to an ip address if it was previously a dns name --- mod/page.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'mod/page.php') diff --git a/mod/page.php b/mod/page.php index 4b2b95b6a..110d9699c 100644 --- a/mod/page.php +++ b/mod/page.php @@ -6,16 +6,17 @@ require_once('include/page_widgets.php'); function page_init(&$a) { // We need this to make sure the channel theme is always loaded. - $which = argv(1); - $profile = 0; - $channel = $a->get_channel(); - if((local_user()) && (argc() > 2) && (argv(2) === 'view')) { - $which = $channel['channel_address']; - $profile = argv(1); - } + $which = argv(1); + $profile = 0; + $channel = $a->get_channel(); - profile_load($a,$which,$profile); + if((local_user()) && (argc() > 2) && (argv(2) === 'view')) { + $which = $channel['channel_address']; + $profile = argv(1); + } + + profile_load($a,$which,$profile); } -- cgit v1.2.3