diff options
author | Joas Schilling <coding@schilljs.com> | 2019-09-16 19:38:43 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-09-16 19:38:43 +0200 |
commit | ad7d13a87ceb5d20559808cad2c63c445ee4047c (patch) | |
tree | 8693b134005540ac50ed9fd9424200682c919a35 /lib | |
parent | e53d5b2dbe69850cb7508dfa43b9f4c03450da12 (diff) | |
download | nextcloud-server-ad7d13a87ceb5d20559808cad2c63c445ee4047c.tar.gz nextcloud-server-ad7d13a87ceb5d20559808cad2c63c445ee4047c.zip |
Print the error pages as error so we load less scripts and might be able to view it
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/template.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/template.php b/lib/private/legacy/template.php index 6d9bf7c99f4..26b1b360adc 100644 --- a/lib/private/legacy/template.php +++ b/lib/private/legacy/template.php @@ -266,7 +266,7 @@ class OC_Template extends \OC\Template\Base { * @return bool */ public static function printGuestPage( $application, $name, $parameters = array() ) { - $content = new OC_Template( $application, $name, "guest" ); + $content = new OC_Template($application, $name, $name === 'error' ? $name : 'guest'); foreach( $parameters as $key => $value ) { $content->assign( $key, $value ); } |