]> git.mxchange.org Git - friendica.git/blob - mod/view.php
Merge pull request #6483 from MrPetovan/bug/fixes-after-2019-03-develop-rebase
[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                 if(file_exists("view/theme/$theme/style.php"))
17                         require_once("view/theme/$theme/style.php");
18         }
19         
20         exit();
21 }