From 543c2964420c30df4ab25a791ff33e9dd52adccc Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 27 Jan 2015 19:06:12 -0800 Subject: [PATCH] Fixes #835 and brings Pages search routine up to v2.x standards. --- e107_admin/db.php | 7 +- e107_admin/search.php | 8 +- e107_admin/update_routines.php | 27 ++++ e107_core/xml/default_install.xml | 29 +--- e107_handlers/search/advanced_download.php | 3 +- e107_handlers/search/advanced_news.php | 3 +- e107_handlers/search/advanced_pages.php | 4 +- e107_handlers/search/search_download.php | 3 +- e107_handlers/search/search_news.php | 3 +- e107_handlers/search/search_pages.php | 2 + e107_plugins/page/e_search.php | 159 +++++++++++++++++++++ 11 files changed, 209 insertions(+), 39 deletions(-) create mode 100644 e107_plugins/page/e_search.php diff --git a/e107_admin/db.php b/e107_admin/db.php index 900c69bef..ebedf91e4 100644 --- a/e107_admin/db.php +++ b/e107_admin/db.php @@ -1161,8 +1161,8 @@ class system_tools $tp = e107::getParser(); $pref = e107::getPref(); - $config = ($type == 'core') ? e107::getConfig('core') : e107::getPlugConfig($type); - + $config = ($type == 'core' || $type == 'search' ) ? e107::getConfig($type) : e107::getPlugConfig($type); + $spref = $config->getPref(); ksort($spref); @@ -1173,7 +1173,8 @@ class system_tools ".DBLAN_20.""; $text .= "