X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fclienterroraction.php;h=5c4ef37d18674893704e9ae933952e810875309a;hb=f67a93eddce8120a26ed15a5559bdf08d190a04c;hp=37f722291e53e1525f0eb532a4f918887d923aec;hpb=9dc8250956a25dc7f06f0d81d135b837cfe8281a;p=quix0rs-gnu-social.git diff --git a/lib/clienterroraction.php b/lib/clienterroraction.php index 37f722291e..5c4ef37d18 100644 --- a/lib/clienterroraction.php +++ b/lib/clienterroraction.php @@ -28,11 +28,7 @@ * along with this program. If not, see . */ -if (!defined('STATUSNET') && !defined('LACONICA')) { - exit(1); -} - -require_once INSTALLDIR . '/lib/error.php'; +if (!defined('GNUSOCIAL')) { exit(1); } /** * Class for displaying HTTP client errors @@ -68,27 +64,13 @@ class ClientErrorAction extends ErrorAction { parent::__construct($message, $code); $this->default = 400; - } - - // XXX: Should these error actions even be invokable via URI? - - protected function handle() - { - parent::handle(); - - $this->code = $this->trimmed('code'); - if (!$this->code || $code < 400 || $code > 499) { + if (!$this->code || $this->code < 400 || $this->code > 499) { $this->code = $this->default; } - - $this->message = $this->trimmed('message'); - if (!$this->message) { $this->message = "Client Error $this->code"; } - - $this->showPage(); } /**