diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/cloud.php | 11 |
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')) |