diff options
author | Robin Appelman <robin@icewind.nl> | 2017-05-06 17:50:48 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-05-06 17:50:48 +0200 |
commit | f12cd19c340809a5194b3f52933390f9d8e24845 (patch) | |
tree | 717bc050943ede8770b7d4a5fa93147167103a02 /lib/private/legacy/template.php | |
parent | 59ee22101f228d9dec8c3930da0b12b0766a479a (diff) | |
download | nextcloud-server-f12cd19c340809a5194b3f52933390f9d8e24845.tar.gz nextcloud-server-f12cd19c340809a5194b3f52933390f9d8e24845.zip |
ensure theming app is loaded when showing an error page
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/legacy/template.php')
-rw-r--r-- | lib/private/legacy/template.php | 5 |
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 = ''; |