From 9fb66ac15426b64107e7a2087848b19b37af5778 Mon Sep 17 00:00:00 2001 From: Sergey Romaneko Date: Thu, 27 Sep 2012 10:31:17 +0300 Subject: [PATCH] Menu Plugin: small improvments --- plugins/box/menu/menu.plugin.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/box/menu/menu.plugin.php b/plugins/box/menu/menu.plugin.php index 2452e3b..83b72d6 100644 --- a/plugins/box/menu/menu.plugin.php +++ b/plugins/box/menu/menu.plugin.php @@ -38,12 +38,9 @@ // Get menu table $menu = new Table('menu'); - // Select all items - $items = $menu->select(null, 'all', null, array('id', 'name', 'link', 'target', 'order'), 'order', 'ASC'); - // Display view View::factory('box/menu/views/frontend/index') - ->assign('items', $items) + ->assign('items', $menu->select(null, 'all', null, array('id', 'name', 'link', 'target', 'order'), 'order', 'ASC')) ->assign('uri', Uri::segments()) ->assign('defpage', Option::get('defaultpage')) ->display();