]> git.mxchange.org Git - friendica.git/blob - mod/view.php
Merge pull request #6694 from Quix0r/rewrites/added-missing-var-init
[friendica.git] / mod / view.php
1 <?php
2
3 use Friendica\App;
4
5 /**
6  * load view/theme/$current_theme/style.php with friendica context
7  *
8  * @param App $a
9  */
10 function view_init(App $a)
11 {
12         header("Content-Type: text/css");
13                 
14         if ($a->argc == 4){
15                 $theme = $a->argv[2];
16                 // set the path for later use in the theme styles
17                 $THEMEPATH = "view/theme/$theme";
18                 if(file_exists("view/theme/$theme/style.php"))
19                         require_once("view/theme/$theme/style.php");
20         }
21         
22         exit();
23 }