derivative themes not loading parent theme includes when visiting /cloud
This commit is contained in:
parent
3a108168c7
commit
28c43395dc
@ -34,6 +34,17 @@
|
|||||||
*/
|
*/
|
||||||
function cloud_init(&$a) {
|
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');
|
require_once('include/reddav.php');
|
||||||
|
|
||||||
if(! is_dir('store'))
|
if(! is_dir('store'))
|
||||||
|
Reference in New Issue
Block a user