]> git.mxchange.org Git - friendica.git/blob - mod/view.php
a270baeaa1425f2faa850d1d21c662875412adf6
[friendica.git] / mod / view.php
1 <?php
2 /**
3  * load view/theme/$current_theme/style.php with friendica contex
4  */
5
6 if(! function_exists('view_init')) {
7 function view_init($a) {
8         header("Content-Type: text/css");
9
10         if ($a->argc == 4){
11                 $theme = $a->argv[2];
12                 $THEMEPATH = "view/theme/$theme";
13                 if(file_exists("view/theme/$theme/style.php"))
14                         require_once("view/theme/$theme/style.php");
15         }
16
17         killme();
18 }
19 }