From 5aa26b90ceff1bf17be3ddabbf18cb201445f0b7 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 23 Oct 2014 23:53:46 -0500 Subject: [PATCH] Fix issue with default template at install time - refs #7328 --- main/inc/global_error_message.inc.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main/inc/global_error_message.inc.php b/main/inc/global_error_message.inc.php index 23690b0fb4..5dddc1bc2b 100755 --- a/main/inc/global_error_message.inc.php +++ b/main/inc/global_error_message.inc.php @@ -50,9 +50,13 @@ $TechnicalIssuesDescription = 'This portal is currently experiencing technical i if (is_int($global_error_code) && $global_error_code > 0) { - $theme = Template::getThemeFallback().'/'; + if (class_exists('Template')) { + $theme = Template::getThemeFallback().'/'; + } else { + $theme = 'chamilo'; + } - $css_path = 'main/css/'; + $css_path = 'main/css/'; $css_file = $css_path.$theme.'default.css'; $bootstrap_file = $css_path.'bootstrap.css'; $css_base_file = $css_path.'base.css';