diff options
author | Cesar G <prototech91@gmail.com> | 2014-05-06 17:57:33 -0700 |
---|---|---|
committer | Cesar G <prototech91@gmail.com> | 2014-05-08 08:35:38 -0700 |
commit | e378037516903ed612c88e8ad0138ec956077b58 (patch) | |
tree | 01bb1eab4342cef0051ac59fae264aa8a908fa86 /phpBB/includes | |
parent | d95164e64155ea3bdbca69532af5dd49c093b351 (diff) | |
download | forums-e378037516903ed612c88e8ad0138ec956077b58.tar forums-e378037516903ed612c88e8ad0138ec956077b58.tar.gz forums-e378037516903ed612c88e8ad0138ec956077b58.tar.bz2 forums-e378037516903ed612c88e8ad0138ec956077b58.tar.xz forums-e378037516903ed612c88e8ad0138ec956077b58.zip |
[ticket/9388] Display only the settings for the selected search backend.
PHPBB3-9388
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/acp/acp_search.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/phpBB/includes/acp/acp_search.php b/phpBB/includes/acp/acp_search.php index 11a2511aee..ce1e4afa9b 100644 --- a/phpBB/includes/acp/acp_search.php +++ b/phpBB/includes/acp/acp_search.php @@ -79,7 +79,8 @@ class acp_search $name = $search->get_name(); $selected = ($config['search_type'] == $type) ? ' selected="selected"' : ''; - $search_options .= '<option value="' . $type . '"' . $selected . '>' . $name . '</option>'; + $identifier = substr($type, strrpos($type, '\\') + 1); + $search_options .= "<option value=\"$type\"$selected data-toggle-setting=\"#search_{$identifier}_settings\">$name</option>"; if (method_exists($search, 'acp')) { @@ -88,9 +89,10 @@ class acp_search if (!$submit) { $template->assign_block_vars('backend', array( - 'NAME' => $name, - 'SETTINGS' => $vars['tpl']) - ); + 'NAME' => $name, + 'SETTINGS' => $vars['tpl'], + 'IDENTIFIER' => $identifier, + )); } else if (is_array($vars['config'])) { |