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>
This commit is contained in:
parent
e53d5b2dbe
commit
ad7d13a87c
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue