X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=d68a057c4b6bf938c0ff7b9e76add7e398ccfba8;hb=6317f7d92bf94f8563a7d9392631d0da06b3042b;hp=4c879fe9a9f72d1777acc2ead46e7f34280974ba;hpb=e458e9fe6352df6063079979b20a6924f97198f4;p=quix0rs-gnu-social.git diff --git a/index.php b/index.php index 4c879fe9a9..d68a057c4b 100644 --- a/index.php +++ b/index.php @@ -29,6 +29,7 @@ * @author Robin Millette * @author Sarven Capadisli * @author Tom Adams + * @copyright 2009 Free Software Foundation, Inc http://www.fsf.org * * @license GNU Affero General Public License http://www.gnu.org/licenses/ */ @@ -185,7 +186,7 @@ function checkMirror($action_obj, $args) function isLoginAction($action) { - static $loginActions = array('login', 'recoverpassword', 'api', 'doc', 'register', 'publicxrds', 'otp', 'opensearch'); + static $loginActions = array('login', 'recoverpassword', 'api', 'doc', 'register', 'publicxrds', 'otp', 'opensearch', 'rsd'); $login = null; @@ -324,10 +325,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(); } }