]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/menu.php
[XML/HTML Outputter] General improvements and refactoring as well as some bug fixes
[quix0rs-gnu-social.git] / lib / menu.php
index 236e99263d0bc418b18cb063f56c7b7eed938196..5fd58f1077ac2e1071398f2802b466df1809b967 100644 (file)
@@ -150,12 +150,12 @@ class Menu extends Widget
 
     function submenu($label, $menu)
     {
-        if (Event::handle('StartSubMenu', array($this->action, $menu, $label))) {
+        if (Event::handle('StartSubMenu', [$this->action, $menu, $label])) {
             $this->action->elementStart('li');
             $this->action->element('h3', null, $label);
             $menu->show();
             $this->action->elementEnd('li');
-            Event::handle('EndSubMenu', array($this->action, $menu, $label));
+            Event::handle('EndSubMenu', [$this->action, $menu, $label]);
         }
     }
 }