Skip to content

Commit

Permalink
Make search plugin works with search minimal for now
Browse files Browse the repository at this point in the history
  • Loading branch information
joomdonation committed Aug 27, 2021
1 parent c3a9a90 commit ddd23d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/search/weblinks/weblinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
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;

/**
Expand Down Expand Up @@ -79,6 +78,8 @@ public function onContentSearchAreas()
*/
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());

Expand Down

0 comments on commit ddd23d1

Please sign in to comment.