mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-07 08:05:25 +02:00
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
This commit is contained in:
commit
a775bb082c
@ -54,8 +54,7 @@ class tidy_search extends \phpbb\cron\task\base
|
|||||||
*/
|
*/
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
// Select the search method
|
$search_type = $this->config['search_type'];
|
||||||
$search_type = basename($this->config['search_type']);
|
|
||||||
|
|
||||||
// We do some additional checks in the module to ensure it can actually be utilised
|
// We do some additional checks in the module to ensure it can actually be utilised
|
||||||
$error = false;
|
$error = false;
|
||||||
@ -78,10 +77,7 @@ class tidy_search extends \phpbb\cron\task\base
|
|||||||
*/
|
*/
|
||||||
public function is_runnable()
|
public function is_runnable()
|
||||||
{
|
{
|
||||||
// Select the search method
|
return class_exists($this->config['search_type']);
|
||||||
$search_type = basename($this->config['search_type']);
|
|
||||||
|
|
||||||
return class_exists($search_type);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user