mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
ee083e047e
commit
437d68c60b
2 changed files with 4 additions and 1 deletions
|
@ -278,8 +278,10 @@ class ExceptionRenderer {
|
|||
protected function _outputMessageSafe($template) {
|
||||
$this->controller->layoutPath = '';
|
||||
$this->controller->subDir = '';
|
||||
$this->controller->helpers = array('Form', 'Html', 'Session');
|
||||
$this->controller->viewPath = 'Errors/';
|
||||
$this->controller->viewClass = 'View';
|
||||
$this->controller->helpers = array('Form', 'Html', 'Session');
|
||||
|
||||
$this->controller->render($template);
|
||||
$this->controller->response->type('html');
|
||||
$this->controller->response->send();
|
||||
|
|
|
@ -686,6 +686,7 @@ class ExceptionRendererTest extends CakeTestCase {
|
|||
$this->assertEquals('', $ExceptionRenderer->controller->layoutPath);
|
||||
$this->assertEquals('', $ExceptionRenderer->controller->subDir);
|
||||
$this->assertEquals('View', $ExceptionRenderer->controller->viewClass);
|
||||
$this->assertEquals('Errors/', $ExceptionRenderer->controller->viewPath);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue