Error page fix: use class static accessor correctly, suppress notices if we don't have the error code listed

This commit is contained in:
Brion Vibber 2009-11-04 08:36:27 -08:00
parent 2fc01dc7d1
commit 2bb93438a1

View File

@ -70,7 +70,7 @@ class ErrorAction extends Action
*/
function extraHeaders()
{
$status_string = $this->status[$this->code];
$status_string = @self::$status[$this->code];
header('HTTP/1.1 '.$this->code.' '.$status_string);
}
@ -92,7 +92,7 @@ class ErrorAction extends Action
function title()
{
return self::$status[$this->code];
return @self::$status[$this->code];
}
function isReadOnly($args)