]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix a couple bad format entries in router setup (format param had 'xmljson' instead...
authorBrion Vibber <brion@pobox.com>
Fri, 11 Jun 2010 18:52:06 +0000 (11:52 -0700)
committerBrion Vibber <brion@pobox.com>
Fri, 11 Jun 2010 18:52:06 +0000 (11:52 -0700)
Warning: the format strings aren't actually being enforced here which is probably why they weren't caught earlier. Not quite sure why, it should be looked at!

lib/router.php

index afe44f92adcf86df75734312ee368c063faec8be..f2b2b845f2836607e12f569b3246097250afdc12 100644 (file)
@@ -540,7 +540,7 @@ class Router
             $m->connect('api/favorites/:id.:format',
                         array('action' => 'ApiTimelineFavorites',
                               'id' => '[a-zA-Z0-9]+',
-                              'format' => '(xmljson|rss|atom)'));
+                              'format' => '(xml|json|rss|atom)'));
 
             $m->connect('api/favorites/create/:id.:format',
                         array('action' => 'ApiFavoriteCreate',
@@ -597,7 +597,7 @@ class Router
             $m->connect('api/statusnet/groups/timeline/:id.:format',
                         array('action' => 'ApiTimelineGroup',
                               'id' => '[a-zA-Z0-9]+',
-                              'format' => '(xmljson|rss|atom)'));
+                              'format' => '(xml|json|rss|atom)'));
 
             $m->connect('api/statusnet/groups/show.:format',
                         array('action' => 'ApiGroupShow',
@@ -658,7 +658,7 @@ class Router
             // Tags
             $m->connect('api/statusnet/tags/timeline/:tag.:format',
                         array('action' => 'ApiTimelineTag',
-                              'format' => '(xmljson|rss|atom)'));
+                              'format' => '(xml|json|rss|atom)'));
 
             // media related
             $m->connect(