mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +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;
|
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'];
|
$error = $user->lang['NO_SUCH_SEARCH_MODULE'];
|
||||||
return $error;
|
return $error;
|
||||||
|
Reference in New Issue
Block a user