fix homebase variable

This commit is contained in:
friendica 2013-08-15 05:20:23 -07:00
parent 92747366af
commit ef414ba94c

View File

@ -328,7 +328,7 @@ if($a->module_loaded) {
if(x($_SESSION,'visitor_home'))
$homebase = $_SESSION['visitor_home'];
elseif(local_user())
$homebase = $a->get_baseurl() . '/channel/' . $a->user['nickname'];
$homebase = $a->get_baseurl() . '/channel/' . $a->channel['channel_address'];
if(isset($homebase))
$a->page['content'] .= '<script>var homebase="' . $homebase . '" ; </script>';