Merge pull request #6173 from rubencm/ticket/15540

[ticket/15540] Change method name with the new one
This commit is contained in:
rubencm 2021-03-24 22:40:31 +00:00 committed by GitHub
commit c52d1d8e45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,16 +85,13 @@ class acp_search
if ($search->is_available()) if ($search->is_available())
{ {
$name = $search->get_name(); $name = $search->get_name();
$type = get_class($search); $type = get_class($search);
$selected = ($config['search_type'] == $type) ? ' selected="selected"' : ''; $selected = ($config['search_type'] == $type) ? ' selected="selected"' : '';
$identifier = substr($type, strrpos($type, '\\') + 1); $identifier = substr($type, strrpos($type, '\\') + 1);
$search_options .= "<option value=\"$type\"$selected data-toggle-setting=\"#search_{$identifier}_settings\">$name</option>"; $search_options .= "<option value=\"$type\"$selected data-toggle-setting=\"#search_{$identifier}_settings\">$name</option>";
if (method_exists($search, 'acp')) $vars = $search->get_acp_options();
{
$vars = $search->acp();
if (!$submit) if (!$submit)
{ {
@ -110,7 +107,6 @@ class acp_search
} }
} }
} }
}
unset($search); unset($search);
$cfg_array = (isset($_REQUEST['config'])) ? $request->variable('config', array('' => ''), true) : array(); $cfg_array = (isset($_REQUEST['config'])) ? $request->variable('config', array('' => ''), true) : array();