summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/template.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-09-16 19:38:43 +0200
committerJoas Schilling <coding@schilljs.com>2019-09-16 19:38:43 +0200
commitad7d13a87ceb5d20559808cad2c63c445ee4047c (patch)
tree8693b134005540ac50ed9fd9424200682c919a35 /lib/private/legacy/template.php
parente53d5b2dbe69850cb7508dfa43b9f4c03450da12 (diff)
downloadnextcloud-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/private/legacy/template.php')
-rw-r--r--lib/private/legacy/template.php2
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 );
}