mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
Merge remote-tracking branch 'origin/2.0' into 2.1
# Conflicts: # code/SQLite3Database.php # code/SQLiteDatabaseConfigurationHelper.php
This commit is contained in:
commit
9b00630616
@ -300,6 +300,8 @@ class SQLite3Database extends Database
|
|||||||
$alternativeFileFilter = "",
|
$alternativeFileFilter = "",
|
||||||
$invertedMatch = false
|
$invertedMatch = false
|
||||||
) {
|
) {
|
||||||
|
$start = (int)$start;
|
||||||
|
$pageLength = (int)$pageLength;
|
||||||
$keywords = $this->escapeString(str_replace(array('*', '+', '-', '"', '\''), '', $keywords));
|
$keywords = $this->escapeString(str_replace(array('*', '+', '-', '"', '\''), '', $keywords));
|
||||||
$htmlEntityKeywords = htmlentities(utf8_decode($keywords));
|
$htmlEntityKeywords = htmlentities(utf8_decode($keywords));
|
||||||
|
|
||||||
@ -326,7 +328,7 @@ class SQLite3Database extends Database
|
|||||||
$extraFilters[$fileClass] .= " AND ShowInSearch <> 0";
|
$extraFilters[$fileClass] .= " AND ShowInSearch <> 0";
|
||||||
}
|
}
|
||||||
|
|
||||||
$limit = $start . ", " . (int) $pageLength;
|
$limit = $start . ", " . $pageLength;
|
||||||
|
|
||||||
$notMatch = $invertedMatch ? "NOT " : "";
|
$notMatch = $invertedMatch ? "NOT " : "";
|
||||||
if ($keywords) {
|
if ($keywords) {
|
||||||
|
Loading…
Reference in New Issue
Block a user