From: Craig Andrews Date: Fri, 17 Jul 2009 21:11:26 +0000 (-0400) Subject: Moved oembed endpointer so openid no longer incorrectly prompts for authentication X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f0d17afc7b69308b27dc48a43ed08947885d8225;p=quix0rs-gnu-social.git Moved oembed endpointer so openid no longer incorrectly prompts for authentication --- diff --git a/lib/router.php b/lib/router.php index bf3895bf01..5e0fcfc946 100644 --- a/lib/router.php +++ b/lib/router.php @@ -113,11 +113,6 @@ class Router $m->connect('main/tagother/:id', array('action' => 'tagother')); - $m->connect('main/:method', - array('action' => 'api', - 'method' => 'oembed(.xml|.json)?', - 'apiaction' => 'oembed')); - // these take a code foreach (array('register', 'confirmaddress', 'recoverpassword') as $c) { @@ -134,6 +129,11 @@ class Router $m->connect('index.php?action=' . $action, array('action' => $action)); } + $m->connect('main/:method', + array('action' => 'api', + 'method' => 'oembed(.xml|.json)?', + 'apiaction' => 'oembed')); + // settings foreach (array('profile', 'avatar', 'password', 'openid', 'im',