mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
updating error handler and erro404 template. closes #4799
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7073 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
c57b5611a0
commit
7ed4665318
2 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ class ErrorHandler extends Object {
|
|||
$this->controller->set(array(
|
||||
'code' => '404',
|
||||
'name' => __('Not Found', true),
|
||||
'message' => sprintf(__("The requested address %s was not found on this server.", true), "<strong>'{$url}'</strong>"),
|
||||
'message' => h($url),
|
||||
'base' => $this->controller->base
|
||||
));
|
||||
$this->__outputMessage('error404');
|
||||
|
|
|
@ -27,5 +27,5 @@
|
|||
<h2><?php echo $name; ?></h2>
|
||||
<p class="error">
|
||||
<strong><?php __('Error'); ?>: </strong>
|
||||
<?php echo $message; ?>
|
||||
<?php echo sprintf(__("The requested address %s was not found on this server.", true), "<strong>'{$message}'</strong>")?>
|
||||
</p>
|
||||
|
|
Loading…
Add table
Reference in a new issue