X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=3778ffe42016486f18090257f2bca6b5d8e57920;hb=a39efbd8d8996f4e9375c397b2f5e8c149fcff68;hp=06ff9900fd5bff24466be4cbd6ee5ffaeb87ac6e;hpb=779204b194447397d0770d96e291d9491fd731b9;p=quix0rs-gnu-social.git diff --git a/index.php b/index.php index 06ff9900fd..3778ffe420 100644 --- a/index.php +++ b/index.php @@ -185,7 +185,7 @@ function checkMirror($action_obj, $args) function isLoginAction($action) { - static $loginActions = array('login', 'recoverpassword', 'api', 'doc', 'register', 'publicxrds'); + static $loginActions = array('login', 'recoverpassword', 'api', 'doc', 'register', 'publicxrds', 'otp', 'rsd'); $login = null; @@ -324,10 +324,10 @@ function main() $cac = new ClientErrorAction($cex->getMessage(), $cex->getCode()); $cac->showPage(); } catch (ServerException $sex) { // snort snort guffaw - $sac = new ServerErrorAction($sex->getMessage(), $sex->getCode()); + $sac = new ServerErrorAction($sex->getMessage(), $sex->getCode(), $sex); $sac->showPage(); } catch (Exception $ex) { - $sac = new ServerErrorAction($ex->getMessage()); + $sac = new ServerErrorAction($ex->getMessage(), 500, $ex); $sac->showPage(); } }