From 030c433796e72b8e8d5fd6129b15f7b6c353b212 Mon Sep 17 00:00:00 2001 From: tom Date: Mon, 23 May 2016 13:02:11 +0800 Subject: [PATCH 1/2] fix warning "Strict Standards: Only variables should be passed by reference in /***/flat/fp-includes/smarty/plugins/function.list_categories.php on line 35" --- fp-includes/smarty/plugins/function.list_categories.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fp-includes/smarty/plugins/function.list_categories.php b/fp-includes/smarty/plugins/function.list_categories.php index cf0753d..ec1b496 100755 --- a/fp-includes/smarty/plugins/function.list_categories.php +++ b/fp-includes/smarty/plugins/function.list_categories.php @@ -32,7 +32,8 @@ function smarty_function_list_categories($params) //, &$smarty) $cats = trim(io_load_file(CONTENT_DIR . 'categories.txt')); $stack=array(0); $arr=array(); - return ''; + $explode_result=explode("\n", $cats) + return ''; } else { global $lang; From 2041c80c9af5c7b70ccf4e00e30b74bca5180ca5 Mon Sep 17 00:00:00 2001 From: tom Date: Mon, 23 May 2016 13:02:54 +0800 Subject: [PATCH 2/2] add a ; --- fp-includes/smarty/plugins/function.list_categories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fp-includes/smarty/plugins/function.list_categories.php b/fp-includes/smarty/plugins/function.list_categories.php index ec1b496..7e77414 100755 --- a/fp-includes/smarty/plugins/function.list_categories.php +++ b/fp-includes/smarty/plugins/function.list_categories.php @@ -32,7 +32,7 @@ function smarty_function_list_categories($params) //, &$smarty) $cats = trim(io_load_file(CONTENT_DIR . 'categories.txt')); $stack=array(0); $arr=array(); - $explode_result=explode("\n", $cats) + $explode_result=explode("\n", $cats); return ''; } else { global $lang;