search by post date
This commit is contained in:
parent
9908a617b3
commit
1e5b2ac6aa
1 changed files with 4 additions and 0 deletions
|
@ -107,6 +107,10 @@ class Index implements Extension {
|
|||
$filename = strtolower($matches[2]);
|
||||
$event->add_querylet(new Querylet("images.filename LIKE '%$filename%'"));
|
||||
}
|
||||
else if(preg_match("/posted=(([0-9\*]*)?(-[0-9\*]*)?(-[0-9\*]*)?)/",$term,$matches)) {
|
||||
$val = str_replace("*", "%", $matches[1]);
|
||||
$img_search->append(new Querylet("images.posted LIKE '%$val%'"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue