[DATABASE] Removed calls to common_config

This commit is contained in:
Hugo Sales 2020-03-30 15:02:22 +00:00 committed by Hugo Sales
parent 03a8c80c4f
commit f1e72255f1
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 8 additions and 8 deletions

View File

@ -85,9 +85,10 @@ class Notice
],
];
if (common_config('search', 'type') == 'fulltext') {
$def['fulltext indexes'] = ['content' => ['content']];
}
// TODO
// if (common_config('search', 'type') == 'fulltext') {
// $def['fulltext indexes'] = ['content' => ['content']];
// }
return $def;
}

View File

@ -64,11 +64,10 @@ class Profile
],
];
// Add a fulltext index
if (common_config('search', 'type') == 'fulltext') {
$def['fulltext indexes'] = ['nickname' => ['nickname', 'fullname', 'location', 'bio', 'homepage']];
}
// TODO
// if (common_config('search', 'type') == 'fulltext') {
// $def['fulltext indexes'] = ['nickname' => ['nickname', 'fullname', 'location', 'bio', 'homepage']];
// }
return $def;
}