X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=fa9f67269c29d10f8efdf42afcdd9ec4683e6cb3;hb=2f8480a779f3495eb64d6c9a94d6153225783e4d;hp=06ff9900fd5bff24466be4cbd6ee5ffaeb87ac6e;hpb=ebf4e497f6e520b011a2a364a9a866fb2d7fb262;p=quix0rs-gnu-social.git diff --git a/index.php b/index.php index 06ff9900fd..fa9f67269c 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', 'opensearch', '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(); } }