]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
move oEmbed router connection after plugins, so other endpoints (such as main/faceboo...
authorCraig Andrews <candrews@integralblue.com>
Wed, 29 Jul 2009 19:33:09 +0000 (15:33 -0400)
committerCraig Andrews <candrews@integralblue.com>
Wed, 29 Jul 2009 19:33:09 +0000 (15:33 -0400)
lib/router.php

index 8e48364979a3ff9c59a51f5d325164ced8ccd249..e10d484f4e8f42b7999de9902f29863d7c00cd3a 100644 (file)
@@ -129,11 +129,6 @@ 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',
@@ -480,6 +475,11 @@ class Router
 
         Event::handle('RouterInitialized', array($m));
 
+        $m->connect('main/:method',
+                    array('action' => 'api',
+                          'method' => 'oembed(.xml|.json)?',
+                          'apiaction' => 'oembed'));
+
         return $m;
     }