aboutsummaryrefslogtreecommitdiffstats
path: root/mod/view.php
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2012-04-02 00:29:27 +0100
committerThomas Willingham <founder@kakste.com>2012-04-02 00:29:27 +0100
commit210586eaed18afc4d9ff613ee8f1ea0acdec621a (patch)
tree49c8e91f210815eeccd6925457664f39380f0a82 /mod/view.php
parent8406803473773404b18b95c709da0b8f5da59d3c (diff)
parent23dc376364b7d8f8e27e3493fe3edbf5cf768a35 (diff)
downloadvolse-hubzilla-210586eaed18afc4d9ff613ee8f1ea0acdec621a.tar.gz
volse-hubzilla-210586eaed18afc4d9ff613ee8f1ea0acdec621a.tar.bz2
volse-hubzilla-210586eaed18afc4d9ff613ee8f1ea0acdec621a.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'mod/view.php')
-rw-r--r--mod/view.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/mod/view.php b/mod/view.php
new file mode 100644
index 000000000..15b3733b3
--- /dev/null
+++ b/mod/view.php
@@ -0,0 +1,17 @@
+<?php
+/**
+ * load view/theme/$current_theme/style.php with friendica contex
+ */
+
+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/style.php"))
+ require_once("view/theme/$theme/style.php");
+ }
+
+ killme();
+}