From 28c43395dc23beefccdb2a5b443bc0659a7fb808 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 28 Jul 2014 21:31:30 -0700 Subject: derivative themes not loading parent theme includes when visiting /cloud --- mod/cloud.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mod/cloud.php') 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')) -- cgit v1.2.3