From 1e164f3b93a27745501d0aa9404a5ceb735e9fec Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Mon, 11 Sep 2017 14:28:47 +0900 Subject: [PATCH] Delete wrong symlink, remove create_function call create_function call is deprecated with PHP 7.2, so creat_function is replaced by the correct anonymous function call for it --- www/Smarty-3.1.21/smarty-3.1.27 | 1 - www/libs/Class.Admin.Backend.inc | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 120000 www/Smarty-3.1.21/smarty-3.1.27 diff --git a/www/Smarty-3.1.21/smarty-3.1.27 b/www/Smarty-3.1.21/smarty-3.1.27 deleted file mode 120000 index 6f6e682f..00000000 --- a/www/Smarty-3.1.21/smarty-3.1.27 +++ /dev/null @@ -1 +0,0 @@ -smarty-3.1.27/ \ No newline at end of file diff --git a/www/libs/Class.Admin.Backend.inc b/www/libs/Class.Admin.Backend.inc index 0b1ea130..03deca3c 100644 --- a/www/libs/Class.Admin.Backend.inc +++ b/www/libs/Class.Admin.Backend.inc @@ -99,7 +99,7 @@ // queue key if (preg_match("/^(add|save|delete|remove|move|up|down|push_live)$/", $this->action)) { - $this->queue_key = join('', array_map(create_function('', '$range = $GLOBALS["_KEY_RANGE"]; return $range[rand(0, (count($range) - 1))];'), range(1, 3))); + $this->queue_key = join('', array_map(function () { $range = $GLOBALS['_KEY_RANGE']; return $range[rand(0, (count($range) - 1))]; }, range(1, 3))); } }