30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-06-01 22:10:50 +00:00

Use namespaced SearchHelper class

This commit is contained in:
Tuan Pham Ngoc 2023-11-28 19:01:35 +07:00
parent 6749120fbf
commit 368afbac98

View File

@ -14,6 +14,7 @@ use Joomla\CMS\Application\CMSApplicationInterface;
use Joomla\CMS\Language\Multilanguage;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\Component\Search\Administrator\Helper\SearchHelper;
use Joomla\Component\Weblinks\Site\Helper\RouteHelper;
use Joomla\Database\DatabaseAwareTrait;
use Joomla\Database\DatabaseInterface;
@ -228,7 +229,7 @@ final class Weblinks extends CMSPlugin
}
foreach ($rows as $weblink) {
if (\searchHelper::checkNoHTML($weblink, $searchText, ['url', 'text', 'title'])) {
if (SearchHelper::checkNoHTML($weblink, $searchText, ['url', 'text', 'title'])) {
$return[] = $weblink;
}
}