From 20b335d9185bd7bd08008e7c8833a33e454a2033 Mon Sep 17 00:00:00 2001 From: David Jardin Date: Wed, 14 Aug 2019 00:46:59 +0200 Subject: [PATCH] Replace require_once call with Autoloader (#404) Allows the usage of a custom IndexerAdapter class using a JLoader override --- src/plugins/finder/weblinks/weblinks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/finder/weblinks/weblinks.php b/src/plugins/finder/weblinks/weblinks.php index 32de240..8dc5306 100644 --- a/src/plugins/finder/weblinks/weblinks.php +++ b/src/plugins/finder/weblinks/weblinks.php @@ -12,7 +12,7 @@ defined('JPATH_BASE') or die; use Joomla\Registry\Registry; // Load the base adapter. -require_once JPATH_ADMINISTRATOR . '/components/com_finder/helpers/indexer/adapter.php'; +JLoader::register('FinderIndexerAdapter', JPATH_ADMINISTRATOR . '/components/com_finder/helpers/indexer/adapter.php'); /** * Smart Search adapter for Joomla Web Links.