]> git.mxchange.org Git - friendica.git/blobdiff - mod/view.php
cleanup
[friendica.git] / mod / view.php
index a270baeaa1425f2faa850d1d21c662875412adf6..f4f1692cb6ffdfcdb9b9689c620191ff001c6e08 100644 (file)
@@ -1,19 +1,23 @@
 <?php
+
+use Friendica\App;
+
 /**
- * load view/theme/$current_theme/style.php with friendica contex
+ * load view/theme/$current_theme/style.php with friendica context
+ *
+ * @param App $a
  */
-
-if(! function_exists('view_init')) {
-function view_init($a) {
+function view_init(App $a)
+{
        header("Content-Type: text/css");
-
+               
        if ($a->argc == 4){
                $theme = $a->argv[2];
+               // set the path for later use in the theme styles
                $THEMEPATH = "view/theme/$theme";
                if(file_exists("view/theme/$theme/style.php"))
                        require_once("view/theme/$theme/style.php");
        }
-
-       killme();
-}
+       
+       exit();
 }