|
From: Florin C B. <ory...@us...> - 2014-05-09 07:53:13
|
Update of /cvsroot/mxbb/core/modules/mx_navmenu In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv623 Modified Files: mx_menu_nav.php Log Message: some fixes to the internal BACKEND, plus some support for other backends compatible in the future versions Index: mx_menu_nav.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_navmenu/mx_menu_nav.php,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** mx_menu_nav.php 2 Jun 2013 12:56:34 -0000 1.38 --- mx_menu_nav.php 9 May 2014 07:53:11 -0000 1.39 *************** *** 67,73 **** define($nav_def_key, true); ! // ! // Get the current MX page. ! // $page_id = $mx_request_vars->request('page', MX_TYPE_INT, 1); $virtual_id = $mx_request_vars->request('virtual', MX_TYPE_INT, ''); --- 67,73 ---- define($nav_def_key, true); ! /* ! * Get the current MX page. ! **/ $page_id = $mx_request_vars->request('page', MX_TYPE_INT, 1); $virtual_id = $mx_request_vars->request('virtual', MX_TYPE_INT, ''); *************** *** 129,135 **** $template->set_filenames($template_tmp); ! // ! // Get menu data ! // if ( $mx_cache->_exists( '_menu_' . $block_id ) ) { --- 129,135 ---- $template->set_filenames($template_tmp); ! /* ! * Get menu data ! **/ if ( $mx_cache->_exists( '_menu_' . $block_id ) ) { *************** *** 191,197 **** $hasCurrentMenu = $catData[$key]['is_current']; } - } ! if(!$menuIsCat) { --- 191,196 ---- $hasCurrentMenu = $catData[$key]['is_current']; } } ! if(!$menuIsCat) { *************** *** 205,209 **** if ($bbcode_bitfield !== '') { ! $mx_bbcode = new mx_bbcode(base64_encode($bbcode_bitfield)); } //$depth = 0; --- 204,222 ---- if ($bbcode_bitfield !== '') { ! switch (PORTAL_BACKEND) ! { ! case 'internal': ! case 'phpbb2': ! case 'smf2': ! case 'mybb': ! $mx_bbcode = new mx_bbcode(); ! break; ! case 'phpbb3': ! case 'olympus': ! case 'ascraeus': ! case 'rhea': ! $mx_bbcode = new mx_bbcode(base64_encode($bbcode_bitfield)); ! break; ! } } //$depth = 0; |