aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/view.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/mod/view.php b/mod/view.php
index 965e18067..9e5eff962 100644
--- a/mod/view.php
+++ b/mod/view.php
@@ -4,14 +4,12 @@
*/
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();
}