aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/legacy/template.php5
1 files changed, 5 insertions, 0 deletions
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 = '';