X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fclienterroraction.php;h=5c42a79bb6457311395fe0eb65e3faa0d3c30766;hb=b53e1439969bfa2c0b551d8cc2fc8fe15652c62a;hp=1b98a1064570d6472bfc2c553925be5d15efb3a8;hpb=b0ce2add41877091ba750b36387b45a476127526;p=quix0rs-gnu-social.git diff --git a/lib/clienterroraction.php b/lib/clienterroraction.php index 1b98a10645..5c42a79bb6 100644 --- a/lib/clienterroraction.php +++ b/lib/clienterroraction.php @@ -1,5 +1,4 @@ showPage(); } + + /** + * To specify additional HTTP headers for the action + * + * @return void + */ + function extraHeaders() + { + $status_string = @self::$status[$this->code]; + header('HTTP/1.1 '.$this->code.' '.$status_string); + } + + /** + * Page title. + * + * @return page title + */ + + function title() + { + return @self::$status[$this->code]; + } }