1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-18 00:06:26 +02:00

Merge pull request #1469 from lonalore/master

Gallery plugin fixes and enhancements
This commit is contained in:
Cameron
2016-04-06 14:32:36 -07:00
65 changed files with 1711 additions and 811 deletions

View File

@@ -47,10 +47,11 @@ if(e_AJAX_REQUEST)
{
if(vartrue($_POST['q']))
{
$q = filter_var($_POST['q'], FILTER_SANITIZE_STRING);
$l = vartrue($_POST['l']) ? intval($_POST['l']) : 10;
$db = e107::getDb();
$tp = e107::getParser();
$q = $tp->filter($_POST['q']);
$l = vartrue($_POST['l']) ? intval($_POST['l']) : 10;
$where = "user_name LIKE '". $q."%' ";
@@ -70,8 +71,8 @@ if(e_AJAX_REQUEST)
if(count($data))
{
header('Content-type: application/json');
echo json_encode($data);
$ajax = e107::getAjax();
$ajax->response($data);
}
}
}