Merge pull request #28 from mikenz/patch-1

Update for latest SS4 changes
This commit is contained in:
Loz Calver 2016-10-10 09:05:52 +01:00 committed by GitHub
commit cfdf20b253

View File

@ -303,7 +303,7 @@ class SQLite3Database extends Database
$extraFilters[$pageClass] .= ' AND ShowInSearch <> 0';
// File.ShowInSearch was added later, keep the database driver backwards compatible
// by checking for its existence first
if (File::singleton()->db('ShowInSearch')) {
if (File::singleton()->getSchema()->fieldSpec(File::class, 'ShowInSearch')) {
$extraFilters[$fileClass] .= " AND ShowInSearch <> 0";
}