]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php
[ROUTES] Allow accept-header specification during router creation
[quix0rs-gnu-social.git] / plugins / GNUsocialPhotos / GNUsocialPhotosPlugin.php
index 36956e5b9b3b750a90f15c4aacb691b3826c4526..fce0fb4f1bb2d2159d7582f26cbf0b4a12e5f08b 100644 (file)
@@ -46,11 +46,11 @@ class GNUsocialPhotosPlugin extends Plugin
 
     function onRouterInitialized($m)
     {
-        $m->connect(':nickname/photos', array('action' => 'photos'));
-        $m->connect(':nickname/photos/:albumid', array('action' => 'photos'));
-        $m->connect('main/uploadphoto', array('action' => 'photoupload'));
-        $m->connect('photo/:photoid', array('action' => 'photo'));
-        $m->connect('editphoto/:photoid', array('action' => 'editphoto'));
+        $m->connect(':nickname/photos', ['action' => 'photos']);
+        $m->connect(':nickname/photos/:albumid', ['action' => 'photos']);
+        $m->connect('main/uploadphoto', ['action' => 'photoupload']);
+        $m->connect('photo/:photoid', ['action' => 'photo']);
+        $m->connect('editphoto/:photoid', ['action' => 'editphoto']);
         return true;
     }