diff options
author | friendica <info@friendica.com> | 2015-01-12 18:33:39 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-12 18:33:39 -0800 |
commit | 1b3e52af2dc4f2872c666784b284a5ba0a8de61d (patch) | |
tree | 606ab65753449fec5cfb646cdfa1614ca0d0adf1 /include/RedDAV | |
parent | 2f9fe0280ecb2dcf2bb5b5fe9eed6a6651856647 (diff) | |
download | volse-hubzilla-1b3e52af2dc4f2872c666784b284a5ba0a8de61d.tar.gz volse-hubzilla-1b3e52af2dc4f2872c666784b284a5ba0a8de61d.tar.bz2 volse-hubzilla-1b3e52af2dc4f2872c666784b284a5ba0a8de61d.zip |
theme toggle issue when viewing mod/cloud of another channel
Diffstat (limited to 'include/RedDAV')
-rw-r--r-- | include/RedDAV/RedBrowser.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/RedDAV/RedBrowser.php b/include/RedDAV/RedBrowser.php index 709f6339b..ddeed74be 100644 --- a/include/RedDAV/RedBrowser.php +++ b/include/RedDAV/RedBrowser.php @@ -267,6 +267,15 @@ class RedBrowser extends DAV\Browser\Plugin { get_app()->page['content'] = $html; load_pdl(get_app()); + + $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); + } + } construct_page(get_app()); } |