[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 b52f0c795e
commit 1589f6e26f
2 changed files with 8 additions and 8 deletions

View File

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

View File

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