use Friendica\BaseModule;
use Friendica\Core\System;
-use dba;
+use Friendica\Database\DBA;
require_once 'include/dba.php';
require_once 'include/text.php';
System::jsonExit($result);
}
- $taglist = dba::p("SELECT DISTINCT(`term`) FROM `term` WHERE `term` LIKE ? AND `type` = ? ORDER BY `term`",
+ $taglist = DBA::p("SELECT DISTINCT(`term`) FROM `term` WHERE `term` LIKE ? AND `type` = ? ORDER BY `term`",
$t . '%',
intval(TERM_HASHTAG)
);
- while ($tag = dba::fetch($taglist)) {
- $result[] = ['text' => strtolower($tag['term'])];
+ while ($tag = DBA::fetch($taglist)) {
+ $result[] = ['text' => $tag['term']];
}
- dba::close($taglist);
+ DBA::close($taglist);
System::jsonExit($result);
}