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:
Evan Prodromou 2009-03-04 06:27:30 -08:00
parent f9babf6a7d
commit cf4e1872ab
2 changed files with 22 additions and 13 deletions

View File

@ -91,4 +91,9 @@ class ClientErrorAction extends ErrorAction
$this->showPage();
}
function title()
{
return $this->status[$this->code];
}
}

View File

@ -89,4 +89,8 @@ class ServerErrorAction extends ErrorAction
$this->showPage();
}
function title()
{
return $this->status[$this->code];
}
}