aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/search')
-rw-r--r--phpBB/includes/search/fulltext_mysql.php2
-rwxr-xr-xphpBB/includes/search/fulltext_native.php11
-rwxr-xr-xphpBB/includes/search/search.php12
3 files changed, 12 insertions, 13 deletions
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php
index a119f866c4..17cc6782c5 100644
--- a/phpBB/includes/search/fulltext_mysql.php
+++ b/phpBB/includes/search/fulltext_mysql.php
@@ -19,7 +19,7 @@ if (!defined('IN_PHPBB'))
/**
* @ignore
*/
-include_once($phpbb_root_path . 'includes/search/search.' . $phpEx);
+include_once(PHPBB_ROOT_PATH . 'includes/search/search.' . PHP_EXT);
/**
* fulltext_mysql
diff --git a/phpBB/includes/search/fulltext_native.php b/phpBB/includes/search/fulltext_native.php
index e38f095f6d..48a29e4f31 100755
--- a/phpBB/includes/search/fulltext_native.php
+++ b/phpBB/includes/search/fulltext_native.php
@@ -19,7 +19,7 @@ if (!defined('IN_PHPBB'))
/**
* @ignore
*/
-include_once($phpbb_root_path . 'includes/search/search.' . $phpEx);
+include_once(PHPBB_ROOT_PATH . 'includes/search/search.' . PHP_EXT);
/**
* fulltext_native
@@ -46,7 +46,7 @@ class fulltext_native extends search_backend
*/
function __construct(&$error)
{
- global $phpbb_root_path, $phpEx, $config;
+ global $config;
$this->word_length = array('min' => $config['fulltext_native_min_chars'], 'max' => $config['fulltext_native_max_chars']);
@@ -55,7 +55,7 @@ class fulltext_native extends search_backend
*/
if (!class_exists('utf_normalizer'))
{
- include($phpbb_root_path . 'includes/utf/utf_normalizer.' . $phpEx);
+ include(PHPBB_ROOT_PATH . 'includes/utf/utf_normalizer.' . PHP_EXT);
}
@@ -966,7 +966,7 @@ class fulltext_native extends search_backend
*/
private function split_message($text)
{
- global $phpbb_root_path, $phpEx, $user;
+ global $user;
$match = $words = array();
@@ -1408,7 +1408,6 @@ class fulltext_native extends search_backend
*/
private function cleanup($text, $allowed_chars = null)
{
- global $phpbb_root_path, $phpEx;
static $conv = array(), $conv_loaded = array();
$words = $allow = array();
@@ -1598,7 +1597,7 @@ class fulltext_native extends search_backend
if (!isset($conv_loaded[$idx]))
{
$conv_loaded[$idx] = 1;
- $file = $phpbb_root_path . 'includes/utf/data/search_indexer_' . $idx . '.' . $phpEx;
+ $file = PHPBB_ROOT_PATH . 'includes/utf/data/search_indexer_' . $idx . '.' . PHP_EXT;
if (file_exists($file))
{
diff --git a/phpBB/includes/search/search.php b/phpBB/includes/search/search.php
index e13a59caed..ab04463527 100755
--- a/phpBB/includes/search/search.php
+++ b/phpBB/includes/search/search.php
@@ -45,14 +45,14 @@ class search_backend
{
if (!sizeof($this->ignore_words))
{
- global $user, $phpEx;
+ global $user;
$words = array();
- if (file_exists("{$user->lang_path}/search_ignore_words.$phpEx"))
+ if (file_exists("{$user->lang_path}/search_ignore_words." . PHP_EXT))
{
// include the file containing ignore words
- include("{$user->lang_path}/search_ignore_words.$phpEx");
+ include("{$user->lang_path}/search_ignore_words." . PHP_EXT);
}
$this->ignore_words = $words;
@@ -67,14 +67,14 @@ class search_backend
{
if (!sizeof($this->match_synonym))
{
- global $user, $phpEx;
+ global $user;
$synonyms = array();
- if (file_exists("{$user->lang_path}/search_synonyms.$phpEx"))
+ if (file_exists("{$user->lang_path}/search_synonyms." . PHP_EXT))
{
// include the file containing synonyms
- include("{$user->lang_path}/search_synonyms.$phpEx");
+ include("{$user->lang_path}/search_synonyms." . PHP_EXT);
}
$this->match_synonym = array_keys($synonyms);