From 3ced01436b5afaf806db66442a2058b3c321d2ec Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 11 Mar 2014 20:28:25 +0000 Subject: Merged -r27692 from trunk to branch 2.6: fix preg_replace_callback from -r26972 git-svn-id: http://piwigo.org/svn/branches/2.6@27693 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/history.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin') diff --git a/admin/history.php b/admin/history.php index 5c1aa4326..7d52f8087 100644 --- a/admin/history.php +++ b/admin/history.php @@ -403,7 +403,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