mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
Some more replacements of create_function
This commit is contained in:
+2
-5
@@ -181,10 +181,7 @@ if (!empty($_GET['keyword']))
|
||||
'('.
|
||||
implode(' AND ',
|
||||
array_map(
|
||||
create_function(
|
||||
'$s',
|
||||
'return "content LIKE \'%$s%\'";'
|
||||
),
|
||||
function($s) {return "content LIKE \'%$s%\'"; } ,
|
||||
preg_split('/[\s,;]+/', $_GET['keyword'] )
|
||||
)
|
||||
).
|
||||
@@ -562,4 +559,4 @@ flush_page_messages();
|
||||
if (count($comments) > 0) $template->assign_var_from_handle('COMMENT_LIST', 'comment_list');
|
||||
$template->pparse('comments');
|
||||
include(PHPWG_ROOT_PATH.'include/page_tail.php');
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user