From 1b3e52af2dc4f2872c666784b284a5ba0a8de61d Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 12 Jan 2015 18:33:39 -0800 Subject: theme toggle issue when viewing mod/cloud of another channel --- include/RedDAV/RedBrowser.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/RedDAV') 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()); } -- cgit v1.2.3