From 0e0b1120fba8ed4f2ebc5d62eb29b1a34c1b1007 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Wed, 11 Jan 2006 18:56:07 +0000 Subject: - overhauled search system - updated structure for search backend plugins - better result caching using ACM - search results no longer session restricted => link to them by copying the URL :) - in-topic search - indexing posts now uses search backend plugins - develop/search_fill.php working again - fulltext_mysql not working yet - tiny bugfixes to ACM git-svn-id: file:///svn/phpbb/trunk@5441 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/acm/acm_db.php | 4 ++-- phpBB/includes/acm/acm_file.php | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/acm') diff --git a/phpBB/includes/acm/acm_db.php b/phpBB/includes/acm/acm_db.php index 0204666aa4..83f52362cd 100644 --- a/phpBB/includes/acm/acm_db.php +++ b/phpBB/includes/acm/acm_db.php @@ -57,7 +57,7 @@ class acm if (!$var_names) { - $var_requested[] = $row['var_name']; + $this->var_requested[] = $row['var_name']; } } } @@ -137,7 +137,7 @@ class acm if ($var_name{0} == '_') { - if (!in_array($this->var_requested, $var_name)) + if (!in_array($var_name, $this->var_requested)) { $this->var_requested[] = $var_name; diff --git a/phpBB/includes/acm/acm_file.php b/phpBB/includes/acm/acm_file.php index 0df3c05a98..fa430b9247 100644 --- a/phpBB/includes/acm/acm_file.php +++ b/phpBB/includes/acm/acm_file.php @@ -154,6 +154,11 @@ class acm { global $phpEx; + if (!$this->_exists($var_name)) + { + return; + } + if ($var_name == 'sql' && !empty($table)) { $regex = '(' . ((is_array($table)) ? implode('|', $table) : $table) . ')'; -- cgit v1.2.1