Update for latest SS4 changes

This commit is contained in:
Mike Cochrane 2016-10-10 11:13:18 +13:00 committed by GitHub
parent 360b70aa22
commit dd81faac7b

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";
}