diff --git a/fp-includes/core/core.system.php b/fp-includes/core/core.system.php index d4882e2..40e367f 100755 --- a/fp-includes/core/core.system.php +++ b/fp-includes/core/core.system.php @@ -73,7 +73,7 @@ - define('SYSTEM_VER', '1.0.2'); + define('SYSTEM_VER', '1.0.3'); function system_ver() { return 'fp-' . SYSTEM_VER; } diff --git a/fp-includes/smarty/plugins/function.list_categories.php b/fp-includes/smarty/plugins/function.list_categories.php index 5e94fc3..cf0753d 100755 --- a/fp-includes/smarty/plugins/function.list_categories.php +++ b/fp-includes/smarty/plugins/function.list_categories.php @@ -30,7 +30,9 @@ function smarty_function_list_categories($params) //, &$smarty) if (file_exists(CONTENT_DIR . 'categories.txt')) { $cats = trim(io_load_file(CONTENT_DIR . 'categories.txt')); - return ''; + $stack=array(0); + $arr=array(); + return ''; } else { global $lang; @@ -152,70 +154,3 @@ function do_print_categories_list(&$lines, &$indentstack, &$result, $params) { return implode($result); } - -/* -function print_list_categories(&$lines, &$indentstack, $result, $params) { - - global $fpdb; - - - if (empty($lines)) - return ''; - - $str = ''; - $v = reset($lines); - $vt = ltrim($v); - - $indent = strlen($v) - strlen($vt); - $indent_old = end($indentstack); - - extract($params); - - if ($indent > $indent_old) { - array_push($indentstack, $indent); - array_pop($result); - array_push($result, $old); - array_push($result, $ild); - array_push($result, $vt); - print_list_categories($lines, $indentstack, $result, $params); - }elseif($indent < $indent_old) { - array_pop($indentstack); - array_push($result, $ord); - print_list_categories($lines, $indentstack, $result, $params); - }else{ - - - array_push($result, $ild); - - /*if (isset($after)) { - eval('$the_after = "'.$after.'";'); - } else { - $the_after = "