mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-26 13:04:13 +02:00
[ticket/12883] Do not use basename() to get the search class in tidy_search
PHPBB3-12883
This commit is contained in:
@ -55,7 +55,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;
|
||||
@ -79,7 +79,7 @@ class tidy_search extends \phpbb\cron\task\base
|
||||
public function is_runnable()
|
||||
{
|
||||
// Select the search method
|
||||
$search_type = basename($this->config['search_type']);
|
||||
$search_type = $this->config['search_type'];
|
||||
|
||||
return class_exists($search_type);
|
||||
}
|
||||
|
Reference in New Issue
Block a user