GitHost.io will be shut down on June 1, 2019. At that point this instance will be unreachable and all data will be irrevocably deleted. More details at https://about.gitlab.com/gitlab-hosted/#githost-is-shutting-down-on-june-1st-2019

Commit 2bb93438 authored by Brion Vibber's avatar Brion Vibber

Error page fix: use class static accessor correctly, suppress notices if we...

Error page fix: use class static accessor correctly, suppress notices if we don't have the error code listed
parent 2fc01dc7
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment