summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-07-17 17:11:26 -0400
committerCraig Andrews <candrews@integralblue.com>2009-07-17 17:11:26 -0400
commitf0d17afc7b69308b27dc48a43ed08947885d8225 (patch)
tree7961725341c4a489331df890a531f578d83782b3 /lib
parent9c670ba695d14068d1d159a91d0699f2677dad91 (diff)
Moved oembed endpointer so openid no longer incorrectly prompts for authentication
Diffstat (limited to 'lib')
-rw-r--r--lib/router.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/router.php b/lib/router.php
index bf3895bf0..5e0fcfc94 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',