diff options
author | Paolo Tacconi <p.tacconi@giunti.it> | 2016-04-15 09:22:27 +0200 |
---|---|---|
committer | Paolo Tacconi <p.tacconi@giunti.it> | 2016-04-15 09:22:27 +0200 |
commit | c38c79d71c8ef70ef649f83e322f1984b75ee2dd (patch) | |
tree | 958fcd22f04546f40b6ac68bb58cfe1a1b1fb7f6 /mod/home.php | |
parent | 1806da0851dd5cf5978b19d12783ae3101a11257 (diff) | |
parent | 45a854762b451dafb882bc56efce054b64420627 (diff) | |
download | volse-hubzilla-c38c79d71c8ef70ef649f83e322f1984b75ee2dd.tar.gz volse-hubzilla-c38c79d71c8ef70ef649f83e322f1984b75ee2dd.tar.bz2 volse-hubzilla-c38c79d71c8ef70ef649f83e322f1984b75ee2dd.zip |
Merge branch 'redmatrix-master'
Diffstat (limited to 'mod/home.php')
-rw-r--r-- | mod/home.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/home.php b/mod/home.php index bfac17eab..478c764ea 100644 --- a/mod/home.php +++ b/mod/home.php @@ -12,7 +12,7 @@ function home_init(&$a) { $splash = ((argc() > 1 && argv(1) === 'splash') ? true : false); - $channel = $a->get_channel(); + $channel = App::get_channel(); if(local_channel() && $channel && $channel['xchan_url'] && ! $splash) { $dest = $channel['channel_startpage']; if(! $dest) @@ -53,8 +53,8 @@ function home_content(&$a, $update = 0, $load = false) { if(strpos($frontpage,'include:') !== false) { $file = trim(str_replace('include:' , '', $frontpage)); if(file_exists($file)) { - $a->page['template'] = 'full'; - $a->page['title'] = t('$Projectname'); + App::$page['template'] = 'full'; + App::$page['title'] = t('$Projectname'); $o .= file_get_contents($file); return $o; } @@ -76,7 +76,7 @@ function home_content(&$a, $update = 0, $load = false) { $loginbox = get_config('system','login_on_homepage'); if(intval($loginbox) || $loginbox === false) - $o .= login(($a->config['system']['register_policy'] == REGISTER_CLOSED) ? 0 : 1); + $o .= login((App::$config['system']['register_policy'] == REGISTER_CLOSED) ? 0 : 1); return $o; |