]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialVideo/GNUsocialVideoPlugin.php
[ROUTES] Allow accept-header specification during router creation
[quix0rs-gnu-social.git] / plugins / GNUsocialVideo / GNUsocialVideoPlugin.php
index 3310712ba76da6b470a6ea6383fd3eb7212044d2..91a7c980aacc24da74f49f1285245fbdb22a513a 100644 (file)
@@ -46,8 +46,8 @@ class GNUsocialVideoPlugin extends MicroAppPlugin
 
     function onRouterInitialized($m)
     {
-        $m->connect('main/postvideo', array('action' => 'postvideo'));
-        $m->connect('showvideo/:id', array('action' => 'showvideo'));
+        $m->connect('main/postvideo', ['action' => 'postvideo']);
+        $m->connect('showvideo/:id', ['action' => 'showvideo']);
         return true;
     }