derivative themes not loading parent theme includes when visiting /cloud

This commit is contained in:
friendica 2014-07-28 21:31:30 -07:00
parent 3a108168c7
commit 28c43395dc

View File

@ -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'))