aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-07-28 21:31:30 -0700
committerfriendica <info@friendica.com>2014-07-28 21:31:30 -0700
commit28c43395dc23beefccdb2a5b443bc0659a7fb808 (patch)
tree6004d9a79cf3a2c440222c750691c67de5ff1318 /mod
parent3a108168c7dbddfe96a759b87cccede449f54484 (diff)
downloadvolse-hubzilla-28c43395dc23beefccdb2a5b443bc0659a7fb808.tar.gz
volse-hubzilla-28c43395dc23beefccdb2a5b443bc0659a7fb808.tar.bz2
volse-hubzilla-28c43395dc23beefccdb2a5b443bc0659a7fb808.zip
derivative themes not loading parent theme includes when visiting /cloud
Diffstat (limited to 'mod')
-rw-r--r--mod/cloud.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/mod/cloud.php b/mod/cloud.php
index 3734f769a..1765c0b69 100644
--- a/mod/cloud.php
+++ b/mod/cloud.php
@@ -34,6 +34,17 @@
*/
function cloud_init(&$a) {
+ // call ($currenttheme)_init since we're operating outside of index.php
+
+ $theme_info_file = "view/theme/".current_theme()."/php/theme.php";
+ if (file_exists($theme_info_file)){
+ require_once($theme_info_file);
+ if(function_exists(str_replace('-','_',current_theme()) . '_init')) {
+ $func = str_replace('-','_',current_theme()) . '_init';
+ $func($a);
+ }
+ }
+
require_once('include/reddav.php');
if(! is_dir('store'))