From 0aac622d67383beab4b35c4c38face7c5a32dec9 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 11 Mar 2014 20:27:26 +0000 Subject: fix preg_replace_callback from -r26972 git-svn-id: http://piwigo.org/svn/trunk@27692 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/history.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/history.php b/admin/history.php index 7e9fe6d81..aaf0159c5 100644 --- a/admin/history.php +++ b/admin/history.php @@ -381,7 +381,7 @@ SELECT { $tags_string = preg_replace_callback( '/(\d+)/', - create_function('$m', 'return isset($name_of_tag[$m[1]]) ? $name_of_tag[$m[1]] : $m[1];'), + create_function('$m', 'global $name_of_tag; return isset($name_of_tag[$m[1]]) ? $name_of_tag[$m[1]] : $m[1];'), str_replace( ',', ', ', -- cgit v1.2.3