Error actions use HTTP code name for title
Change the title of error actions to the HTTP code name, like 'internal server error'.
This commit is contained in:
parent
f9babf6a7d
commit
cf4e1872ab
@ -91,4 +91,9 @@ class ClientErrorAction extends ErrorAction
|
||||
|
||||
$this->showPage();
|
||||
}
|
||||
|
||||
function title()
|
||||
{
|
||||
return $this->status[$this->code];
|
||||
}
|
||||
}
|
||||
|
@ -89,4 +89,8 @@ class ServerErrorAction extends ErrorAction
|
||||
$this->showPage();
|
||||
}
|
||||
|
||||
function title()
|
||||
{
|
||||
return $this->status[$this->code];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user