mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-12-25 01:45:59 +00:00
Make search plugin works with search minimal for now
This commit is contained in:
parent
c3a9a90220
commit
ddd23d1fbc
@ -12,7 +12,6 @@ defined('_JEXEC') or die;
|
||||
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;
|
||||
|
||||
/**
|
||||
@ -79,6 +78,8 @@ class PlgSearchWeblinks extends CMSPlugin
|
||||
*/
|
||||
public function onContentSearch($text, $phrase = '', $ordering = '', $areas = null)
|
||||
{
|
||||
JLoader::register('SearchHelper', JPATH_ADMINISTRATOR . '/components/com_search/helpers/search.php');
|
||||
|
||||
$db = $this->db;
|
||||
$groups = implode(',', $this->app->getIdentity()->getAuthorisedViewLevels());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user