* @return array query+params array
*/
function getQuery() {
- global $sys_use_fti;
+
$qpa = db_construct_qpa () ;
- if ($sys_use_fti) {
+ if (forge_get_config('use_fti')) {
if(count($this->words)) {
$qpa = db_construct_qpa () ;
$qpa = db_construct_qpa ($qpa,