From: Craig Andrews Date: Wed, 29 Jul 2009 19:33:09 +0000 (-0400) Subject: move oEmbed router connection after plugins, so other endpoints (such as main/faceboo... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6b48fd8f86cd4e6ee7309104bdb4e5b44b9b60c6;p=quix0rs-gnu-social.git move oEmbed router connection after plugins, so other endpoints (such as main/facebooklogin) from plugins don't get accidentally intercepted --- diff --git a/lib/router.php b/lib/router.php index 8e48364979..e10d484f4e 100644 --- a/lib/router.php +++ b/lib/router.php @@ -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; }