aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2014-07-26 22:52:08 +0200
committerAndreas Fischer <bantu@phpbb.com>2014-07-26 22:52:08 +0200
commita775bb082c01b7adda70af974a0f7da3102a5592 (patch)
tree81bdaa17d89bd8f797bb45eb25e7791893aa0157 /phpBB/phpbb
parent155f709e36fab1771b4fed91899e4fae625238b8 (diff)
parent3bf04d715294aca3b89a4cd6a3d121acf93a233e (diff)
downloadforums-a775bb082c01b7adda70af974a0f7da3102a5592.tar
forums-a775bb082c01b7adda70af974a0f7da3102a5592.tar.gz
forums-a775bb082c01b7adda70af974a0f7da3102a5592.tar.bz2
forums-a775bb082c01b7adda70af974a0f7da3102a5592.tar.xz
forums-a775bb082c01b7adda70af974a0f7da3102a5592.zip
Merge pull request #2768 from Nicofuma/ticket/12883
[ticket/12883] Do not use basename() to get the search class in tidy_search * Nicofuma/ticket/12883: [ticket/12883] Remove pointless comments [ticket/12883] Do not use basename() to get the search class in tidy_search
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/cron/task/core/tidy_search.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/phpBB/phpbb/cron/task/core/tidy_search.php b/phpBB/phpbb/cron/task/core/tidy_search.php
index 2de744b7c1..2c30274dfa 100644
--- a/phpBB/phpbb/cron/task/core/tidy_search.php
+++ b/phpBB/phpbb/cron/task/core/tidy_search.php
@@ -54,8 +54,7 @@ class tidy_search extends \phpbb\cron\task\base
*/
public function run()
{
- // Select the search method
- $search_type = basename($this->config['search_type']);
+ $search_type = $this->config['search_type'];
// We do some additional checks in the module to ensure it can actually be utilised
$error = false;
@@ -78,10 +77,7 @@ class tidy_search extends \phpbb\cron\task\base
*/
public function is_runnable()
{
- // Select the search method
- $search_type = basename($this->config['search_type']);
-
- return class_exists($search_type);
+ return class_exists($this->config['search_type']);
}
/**