mirror of
https://github.com/e107inc/e107.git
synced 2025-07-18 21:41:29 +02:00
Menu visibility issue (broken when there is dash in the condition list)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* $Id: menu.php,v 1.1 2009-01-08 17:23:13 mcfly_e107 Exp $ */
|
/* $Id: menu.php,v 1.2 2009-02-05 11:54:59 secretr Exp $ */
|
||||||
|
|
||||||
function menu_shortcode($parm)
|
function menu_shortcode($parm)
|
||||||
{
|
{
|
||||||
@@ -24,7 +24,7 @@ function menu_shortcode($parm)
|
|||||||
$show_menu = TRUE;
|
$show_menu = TRUE;
|
||||||
if($row['menu_pages'])
|
if($row['menu_pages'])
|
||||||
{
|
{
|
||||||
list($listtype, $listpages) = explode('-', $row['menu_pages']);
|
list($listtype, $listpages) = explode('-', $row['menu_pages'], 2);
|
||||||
$pagelist = explode('|',$listpages);
|
$pagelist = explode('|',$listpages);
|
||||||
$check_url = e_SELF.(e_QUERY ? '?'.e_QUERY : '');
|
$check_url = e_SELF.(e_QUERY ? '?'.e_QUERY : '');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user