Changeset 28493


Ignore:
Timestamp:
May 17, 2014, 8:15:24 AM (6 years ago)
Author:
rvelices
Message:

menutree simplification

Location:
extensions/rv_menutree/trunk
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_menutree/trunk/main.inc.php

    r27411 r28493  
    1616}
    1717
    18 add_event_handler('get_categories_menu_sql_where', 'rv_mt_get_categories_menu_sql_where', EVENT_HANDLER_PRIORITY_NEUTRAL, 3 );
     18add_event_handler('get_categories_menu_sql_where', 'rv_mt_get_categories_menu_sql_where', EVENT_HANDLER_PRIORITY_NEUTRAL, 2 );
    1919
    20 function rv_mt_get_categories_menu_sql_where($where, $expand, $filter)
     20function rv_mt_get_categories_menu_sql_where($where, $expand)
    2121{
    2222        if (mobile_theme())
     
    2424        add_event_handler('blockmanager_apply', 'rv_mt_menubar_categories');
    2525
    26         if ($expand or $filter)
     26        if ($expand)
    2727                return $where;
    2828
     
    6868                unset($cat);
    6969                $rvmt_base_name  = basename(dirname(__FILE__));
    70                 $template->set_template_dir(PHPWG_ROOT_PATH.'plugins/'.$rvmt_base_name.'/template/');
    7170                $template->assign(array(
    7271                        'RVMT_BASE_NAME' => $rvmt_base_name,
     
    7473                        )
    7574                );
    76                 $block->template = 'rv_menutree_categories.tpl';
     75                $block->template = realpath(PHPWG_ROOT_PATH.'plugins/'.$rvmt_base_name.'/template/rv_menutree_categories.tpl');
    7776        }
    7877}
Note: See TracChangeset for help on using the changeset viewer.