X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=b1e4f651e4872b1dbf8961a1064c3424fc29972a;hb=093857c582a68b39e0d65523d27f25ede7b7fed6;hp=3acdba3754a7c095618efe6eacbc96dffd98e9c4;hpb=61419038e5747886357964a7eb3f814761482891;p=quix0rs-gnu-social.git diff --git a/index.php b/index.php index 3acdba3754..b1e4f651e4 100644 --- a/index.php +++ b/index.php @@ -68,6 +68,7 @@ function getPath($req) */ function handleError($error) { +//error_log(print_r($error,1)); if ($error->getCode() == DB_DATAOBJECT_ERROR_NODATA) { return; } @@ -239,6 +240,7 @@ function main() if (!$user && common_config('site', 'private') && !isLoginAction($action) && !preg_match('/rss$/', $action) + && !preg_match('/^Api/', $action) ) { common_redirect(common_local_url('login')); return;