From 030c433796e72b8e8d5fd6129b15f7b6c353b212 Mon Sep 17 00:00:00 2001 From: tom Date: Mon, 23 May 2016 13:02:11 +0800 Subject: [PATCH] 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;