]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialPhoto/GNUsocialPhotoPlugin.php
[ROUTES] Allow accept-header specification during router creation
[quix0rs-gnu-social.git] / plugins / GNUsocialPhoto / GNUsocialPhotoPlugin.php
index 44a6e3fe346ebc895e1fa469ba20d7a11058bd7c..ae2e1366641a623f4b7aec2a3d86ec8d8be18f5a 100644 (file)
@@ -46,8 +46,8 @@ class GNUsocialPhotoPlugin extends MicroAppPlugin
 
     function onRouterInitialized($m)
     {
-        $m->connect('main/photo/new', array('action' => 'newphoto'));
-        $m->connect('main/photo/:id', array('action' => 'showphoto'));
+        $m->connect('main/photo/new', ['action' => 'newphoto']);
+        $m->connect('main/photo/:id', ['action' => 'showphoto']);
         return true;
     }