X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2FHTTPException.php;h=b9bad457da13b0dbd17b45b7145abc1c12597197;hb=de8787dd5bb9fadd6388c050bad35ec4c0332e08;hp=eec4a9ced244ddc9a50b121eceaf2285d650f806;hpb=b41bf77ec8187b6c7bdc5229510032662901e416;p=friendica.git diff --git a/src/Network/HTTPException.php b/src/Network/HTTPException.php index eec4a9ced2..b9bad457da 100644 --- a/src/Network/HTTPException.php +++ b/src/Network/HTTPException.php @@ -1,23 +1,27 @@ -httpdesc == "") { - $this->httpdesc = preg_replace("|([a-z])([A-Z])|",'$1 $2', str_replace("Exception","",get_class($this))); - } - parent::__construct($message, $code, $previous); - } -} +httpdesc == '') { + $classname = str_replace('Exception', '', str_replace('Friendica\Network\HTTPException\\', '', get_class($this))); + $this->httpdesc = preg_replace("|([a-z])([A-Z])|",'$1 $2', $classname); + } + parent::__construct($message, $code, $previous); + } +}