]> git.mxchange.org Git - friendica.git/blobdiff - mod/home.php
Merge pull request #3281 from annando/issue-3206-2957
[friendica.git] / mod / home.php
index 0e83340cc3fd9f41e280f9117dc20ed5d960cfaf..b1708d80a2f02e36fe78b650841581508323a316 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 if(! function_exists('home_init')) {
-function home_init(&$a) {
+function home_init(App $a) {
 
        $ret = array();
        call_hooks('home_init',$ret);
@@ -16,9 +16,8 @@ function home_init(&$a) {
 
 }}
 
-
 if(! function_exists('home_content')) {
-function home_content(&$a) {
+function home_content(App $a) {
 
        $o = '';
 
@@ -35,9 +34,8 @@ function home_content(&$a) {
                        $a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="'.App::get_baseurl().'/home.css'.'" media="all" />';
                }
 
-               $o .= file_get_contents('home.html');}
-
-       else {
+               $o .= file_get_contents('home.html');
+       } else {
                $o .= '<h1>'.((x($a->config,'sitename')) ? sprintf(t("Welcome to %s"), $a->config['sitename']) : "").'</h1>';
        }
 
@@ -48,5 +46,4 @@ function home_content(&$a) {
 
        return $o;
 
-
 }}