mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/14704] Removes unused function and language files in base.php
PHPBB3-14704
This commit is contained in:
@@ -36,52 +36,6 @@ class base
|
||||
$error = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a language dependend list of words that should be ignored by the search
|
||||
*/
|
||||
function get_ignore_words()
|
||||
{
|
||||
if (!sizeof($this->ignore_words))
|
||||
{
|
||||
global $user, $phpEx;
|
||||
|
||||
$words = array();
|
||||
|
||||
if (file_exists("{$user->lang_path}{$user->lang_name}/search_ignore_words.$phpEx"))
|
||||
{
|
||||
// include the file containing ignore words
|
||||
include("{$user->lang_path}{$user->lang_name}/search_ignore_words.$phpEx");
|
||||
}
|
||||
|
||||
$this->ignore_words = $words;
|
||||
unset($words);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Stores a list of synonyms that should be replaced in $this->match_synonym and $this->replace_synonym and caches them
|
||||
*/
|
||||
function get_synonyms()
|
||||
{
|
||||
if (!sizeof($this->match_synonym))
|
||||
{
|
||||
global $user, $phpEx;
|
||||
|
||||
$synonyms = array();
|
||||
|
||||
if (file_exists("{$user->lang_path}{$user->lang_name}/search_synonyms.$phpEx"))
|
||||
{
|
||||
// include the file containing synonyms
|
||||
include("{$user->lang_path}{$user->lang_name}/search_synonyms.$phpEx");
|
||||
}
|
||||
|
||||
$this->match_synonym = array_keys($synonyms);
|
||||
$this->replace_synonym = array_values($synonyms);
|
||||
|
||||
unset($synonyms);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves cached search results
|
||||
*
|
||||
|
Reference in New Issue
Block a user