mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 18:23:18 +02:00
Some more replacements of create_function
This commit is contained in:
+1
-1
@@ -377,7 +377,7 @@ SELECT
|
||||
{
|
||||
$tags_string = preg_replace_callback(
|
||||
'/(\d+)/',
|
||||
create_function('$m', 'global $name_of_tag; return isset($name_of_tag[$m[1]]) ? $name_of_tag[$m[1]] : $m[1];'),
|
||||
function($m) use ($name_of_tag) { return isset($name_of_tag[$m[1]]) ? $name_of_tag[$m[1]] : $m[1];} ,
|
||||
str_replace(
|
||||
',',
|
||||
', ',
|
||||
|
||||
@@ -89,7 +89,7 @@ function check_sendmail_timeout()
|
||||
*/
|
||||
function quote_check_key_list($check_key_list = array())
|
||||
{
|
||||
return array_map(create_function('$s', 'return \'\\\'\'.$s.\'\\\'\';'), $check_key_list);
|
||||
return array_map(function($s) { return '\''.$s.'\''; } , $check_key_list);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -543,4 +543,4 @@ function subscribe_notification_by_mail($is_admin_request, $check_key_list = arr
|
||||
return do_subscribe_unsubscribe_notification_by_mail($is_admin_request, true, $check_key_list);
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user