From f12cd19c340809a5194b3f52933390f9d8e24845 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sat, 6 May 2017 17:50:48 +0200 Subject: ensure theming app is loaded when showing an error page Signed-off-by: Robin Appelman --- lib/private/legacy/template.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/private/legacy/template.php b/lib/private/legacy/template.php index 9a919ff12f2..b4c69327438 100644 --- a/lib/private/legacy/template.php +++ b/lib/private/legacy/template.php @@ -292,6 +292,11 @@ class OC_Template extends \OC\Template\Base { * @param string $hint An optional hint message - needs to be properly escaped */ public static function printErrorPage( $error_msg, $hint = '' ) { + if (\OC_App::isEnabled('theming') && !\OC_App::isAppLoaded('theming')) { + \OC_App::loadApp('theming'); + } + + if ($error_msg === $hint) { // If the hint is the same as the message there is no need to display it twice. $hint = ''; -- cgit v1.2.3