Skip to content

Commit

Permalink
fix #110
Browse files Browse the repository at this point in the history
  • Loading branch information
creativecat committed Jul 29, 2013
1 parent 2711c3e commit 40e3931
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions upload/modules/lib_dwoo/dwoo/plugins/cat/show_menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function among_constants( $among_array )
$return = 0;
if ( strpos($among_array, '+') )
{
$array = explode( '\+', $among_array );
$array = explode( '+', $among_array );
$among_array = 0;
foreach( $array as $value )
{
Expand Down Expand Up @@ -81,7 +81,6 @@ function Dwoo_Plugin_show_menu(
)
{
if (strpos($aOptions, 'SM2_PRETTY') !== false) return "<strong>Error:</strong> show_menu() does not support the SM2_PRETTY Flag!";

// Set variables to replace strings with constants
$search_values = array( 'SM2_ROOT', 'SM2_CURR', 'SM2_ALLMENU', 'SM2_START', 'SM2_MAX', 'SM2_ALLINFO', 'SM2_ALL', 'SM2_TRIM', 'SM2_CRUMB', 'SM2_SIBLING', 'SM2_NUMCLASS', 'SM2_NOCACHE', 'SM2_PRETTY', 'SM2_ESCAPE', 'SM2_NOESCAPE', 'SM2_BUFFER', 'SM2_CURRTREE', 'SM2_SHOWHIDDEN', 'SM2_XHTML_STRICT', 'SM2_NO_TITLE' , 'SM2_ARRAY' );
$replace_values = array( SM2_ROOT, SM2_CURR, SM2_ALLMENU, SM2_START, SM2_MAX, SM2_ALLINFO, SM2_ALL, SM2_TRIM, SM2_CRUMB, SM2_SIBLING, SM2_NUMCLASS, SM2_NOCACHE, SM2_PRETTY, SM2_ESCAPE, SM2_NOESCAPE, SM2_BUFFER, SM2_CURRTREE, SM2_SHOWHIDDEN, SM2_XHTML_STRICT, SM2_NO_TITLE, '' );
Expand All @@ -103,7 +102,6 @@ function Dwoo_Plugin_show_menu(
$MaxLevel = among_constants( $aMaxLevel );
$Options = among_constants( $aOptions );


if ( $direct_output ) // If direct output simply print show_menu2()
{
show_menu2( $Menu, $Start, $MaxLevel, $Options, $aItemOpen, $aItemClose, $aMenuOpen, $aMenuClose, $aTopItemOpen, $aTopMenuOpen );
Expand Down

0 comments on commit 40e3931

Please sign in to comment.