mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 11:01:48 +02:00
[feature/extension-manager] Skip phpbb_search_base by checking for get_name()
PHPBB3-10323
This commit is contained in:
@@ -623,7 +623,7 @@ class acp_search
|
||||
{
|
||||
global $phpbb_root_path, $phpEx, $user;
|
||||
|
||||
if (!class_exists($type))
|
||||
if (!class_exists($type) || !method_exists($type, 'get_name'))
|
||||
{
|
||||
$error = $user->lang['NO_SUCH_SEARCH_MODULE'];
|
||||
return $error;
|
||||
|
Reference in New Issue
Block a user