From 0dc55fe436e0a739178f9cd58b68191ef59747de Mon Sep 17 00:00:00 2001 From: Ahmad Rusli Date: Tue, 31 Jan 2012 17:44:03 +0700 Subject: [PATCH] The problem is JSite class re-declarate itself. In fact, the search results can well run without JSite class. So, remove these lines. --- administrator/components/com_search/models/searches.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/administrator/components/com_search/models/searches.php b/administrator/components/com_search/models/searches.php index b5f549860a754..ccac478f0d620 100644 --- a/administrator/components/com_search/models/searches.php +++ b/administrator/components/com_search/models/searches.php @@ -141,11 +141,6 @@ public function getItems() JPluginHelper::importPlugin('search'); $app = JFactory::getApplication(); - if (!class_exists('JSite')) { - // This fools the routers in the search plugins into thinking it's in the frontend - require_once JPATH_COMPONENT.'/helpers/site.php'; - } - foreach ($items as &$item) { $results = $app->triggerEvent('onContentSearch', array($item->search_term)); $item->returns = 0;