mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-09-28 04:59:04 +00:00
Fix method signature mismatch
This commit is contained in:
parent
03954566ed
commit
ba3dfff2a4
@ -13,6 +13,7 @@ use Joomla\CMS\Component\ComponentHelper;
|
|||||||
use Joomla\Component\Finder\Administrator\Indexer\Adapter;
|
use Joomla\Component\Finder\Administrator\Indexer\Adapter;
|
||||||
use Joomla\Component\Finder\Administrator\Indexer\Helper;
|
use Joomla\Component\Finder\Administrator\Indexer\Helper;
|
||||||
use Joomla\Component\Finder\Administrator\Indexer\Indexer;
|
use Joomla\Component\Finder\Administrator\Indexer\Indexer;
|
||||||
|
use Joomla\Component\Finder\Administrator\Indexer\Result;
|
||||||
use Joomla\Component\Weblinks\Site\Helper\RouteHelper;
|
use Joomla\Component\Weblinks\Site\Helper\RouteHelper;
|
||||||
use Joomla\Registry\Registry;
|
use Joomla\Registry\Registry;
|
||||||
|
|
||||||
@ -236,15 +237,14 @@ class PlgFinderWeblinks extends Adapter
|
|||||||
/**
|
/**
|
||||||
* Method to index an item. The item must be a FinderIndexerResult object.
|
* Method to index an item. The item must be a FinderIndexerResult object.
|
||||||
*
|
*
|
||||||
* @param FinderIndexerResult $item The item to index as an FinderIndexerResult object.
|
* @param Result $item The item to index as an FinderIndexerResult object.
|
||||||
* @param string $format The item format. Not used.
|
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 2.5
|
* @since 2.5
|
||||||
* @throws Exception on database error.
|
* @throws Exception on database error.
|
||||||
*/
|
*/
|
||||||
protected function index(FinderIndexerResult $item, $format = 'html')
|
protected function index(Result $item)
|
||||||
{
|
{
|
||||||
// Check if the extension is enabled
|
// Check if the extension is enabled
|
||||||
if (ComponentHelper::isEnabled($this->extension) == false)
|
if (ComponentHelper::isEnabled($this->extension) == false)
|
||||||
@ -264,7 +264,7 @@ class PlgFinderWeblinks extends Adapter
|
|||||||
$item->metadata = $registry;
|
$item->metadata = $registry;
|
||||||
|
|
||||||
// Build the necessary route and path information.
|
// Build the necessary route and path information.
|
||||||
$item->url = $this->getURL($item->id, $this->extension, $this->layout);
|
$item->url = $this->getURL($item->id, $this->extension, $this->layout);
|
||||||
$item->route = RouteHelper::getWeblinkRoute($item->slug, $item->catslug, $item->language);
|
$item->route = RouteHelper::getWeblinkRoute($item->slug, $item->catslug, $item->language);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user