diff options
Diffstat (limited to 'mod/view.php')
-rw-r--r-- | mod/view.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/mod/view.php b/mod/view.php index 965e18067..d4381743c 100644 --- a/mod/view.php +++ b/mod/view.php @@ -1,17 +1,15 @@ <?php /** - * load view/theme/$current_theme/style.php with friendica contex + * load view/theme/$current_theme/style.php with Red context */ function view_init($a){ + header("Content-Type: text/css"); - if ($a->argc == 4){ - $theme = $a->argv[2]; - $THEMEPATH = "view/theme/$theme"; - if(file_exists("view/theme/$theme/php/style.php")) - require_once("view/theme/$theme/php/style.php"); - } - + $theme = argv(2); + $THEMEPATH = "view/theme/$theme"; + if(file_exists("view/theme/$theme/php/style.php")) + require_once("view/theme/$theme/php/style.php"); killme(); } |