aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhruv Goel <dhruv.goel92@gmail.com>2012-06-26 19:06:19 +0530
committerDhruv <dhruv.goel92@gmail.com>2012-07-12 17:27:28 +0530
commit02588069f045ae48984d68c9948c8ecd1c78580d (patch)
tree1f34309f3c5026835e797af407e324b6d68868df
parent455a35d8361c93657874e140a2ad5b2e5c267757 (diff)
downloadforums-02588069f045ae48984d68c9948c8ecd1c78580d.tar
forums-02588069f045ae48984d68c9948c8ecd1c78580d.tar.gz
forums-02588069f045ae48984d68c9948c8ecd1c78580d.tar.bz2
forums-02588069f045ae48984d68c9948c8ecd1c78580d.tar.xz
forums-02588069f045ae48984d68c9948c8ecd1c78580d.zip
[feature/sphinx-fulltext-search] fix config variables
config variables now use class property for unique id PHPBB3-10946 Conflicts: phpBB/includes/search/fulltext_sphinx.php
-rw-r--r--phpBB/includes/search/fulltext_sphinx.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/phpBB/includes/search/fulltext_sphinx.php b/phpBB/includes/search/fulltext_sphinx.php
index 9ae6438af2..fb16c5639b 100644
--- a/phpBB/includes/search/fulltext_sphinx.php
+++ b/phpBB/includes/search/fulltext_sphinx.php
@@ -226,7 +226,7 @@ class phpbb_search_fulltext_sphinx
$config_object = new sphinx_config($config['fulltext_sphinx_config_path'] . 'sphinx.conf');
$config_data = array(
- "source source_phpbb_{$this->id}_main" => array(
+ 'source source_phpbb_' . $this->id . '_main' => array(
array('type', 'mysql'),
array('sql_host', $dbhost),
array('sql_user', $dbuser),
@@ -265,7 +265,7 @@ class phpbb_search_fulltext_sphinx
array('sql_attr_timestamp' , 'topic_last_post_time'),
array('sql_attr_str2ordinal', 'post_subject'),
),
- "source source_phpbb_{$this->id}_delta : source_phpbb_{$this->id}_main" => array(
+ 'source source_phpbb_' . $this->id . '_delta : source_phpbb_' . $this->id . '_main' => array(
array('sql_query_pre', ''),
array('sql_query_range', ''),
array('sql_range_step', ''),
@@ -286,9 +286,9 @@ class phpbb_search_fulltext_sphinx
p.topic_id = t.topic_id
AND p.post_id >= ( SELECT max_doc_id FROM ' . SPHINX_TABLE . ' WHERE counter_id=1 )'),
),
- "index index_phpbb_{$this->id}_main" => array(
- array('path', $config['fulltext_sphinx_data_path'] . "index_phpbb_{$this->id}_main"),
- array('source', "source_phpbb_{$this->id}_main"),
+ 'index index_phpbb_' . $this->id . '_main' => array(
+ array('path', $config['fulltext_sphinx_data_path'] . 'index_phpbb_' . $this->id . '_main'),
+ array('source', 'source_phpbb_' . $this->id . '_main'),
array('docinfo', 'extern'),
array('morphology', 'none'),
array('stopwords', (file_exists($config['fulltext_sphinx_config_path'] . 'sphinx_stopwords.txt') && $config['fulltext_sphinx_stopwords']) ? $config['fulltext_sphinx_config_path'] . 'sphinx_stopwords.txt' : ''),
@@ -298,9 +298,9 @@ class phpbb_search_fulltext_sphinx
array('min_prefix_len', '0'),
array('min_infix_len', '0'),
),
- "index index_phpbb_{$this->id}_delta : index_phpbb_{$this->id}_main" => array(
- array('path', $config['fulltext_sphinx_data_path'] . "index_phpbb_{$this->id}_delta"),
- array('source', "source_phpbb_{$this->id}_delta"),
+ 'index index_phpbb_' . $this->id . '_delta : index_phpbb_' . $this->id . '_main' => array(
+ array('path', $config['fulltext_sphinx_data_path'] . 'index_phpbb_' . $this->id . '_delta'),
+ array('source', 'source_phpbb_' . $this->id . '_delta'),
),
'indexer' => array(
array('mem_limit', $config['fulltext_sphinx_indexer_mem_limit'] . 'M'),