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
This commit is contained in:
Clemens Schwaighofer
2017-09-11 14:28:47 +09:00
parent 9f7ab65a15
commit 1e164f3b93
2 changed files with 1 additions and 2 deletions

View File

@@ -1 +0,0 @@
smarty-3.1.27/

View File

@@ -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)));
}
}