Use namespaced SearchHelper class

This commit is contained in:
Tuan Pham Ngoc 2023-11-28 19:01:35 +07:00
parent 6749120fbf
commit 368afbac98
1 changed files with 2 additions and 1 deletions

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;
}
}