git-svn-id: file:///svn/phpbb/trunk@7718 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Henry Sudhof 2007-06-06 16:08:25 +00:00
parent aa21e76d69
commit 8f692db407
2 changed files with 5 additions and 2 deletions

View file

@ -240,7 +240,7 @@ p a {
<li>[Feature] Added the option to disable the flash bbcode globally (DelvarWorld).</li> <li>[Feature] Added the option to disable the flash bbcode globally (DelvarWorld).</li>
<li>[Sec] Changed the embedding of Flash (NeoThermic, DelvarWorld).</li> <li>[Sec] Changed the embedding of Flash (NeoThermic, DelvarWorld).</li>
<li>[Fix] Use the signature setting for PMs (Bug #12001)</li> <li>[Fix] Use the signature setting for PMs (Bug #12001)</li>
<li>[Fix] Made the DBMS selection use language variables (Bug #11969)</li>
</ul> </ul>

View file

@ -29,6 +29,7 @@ function can_load_dll($dll)
*/ */
function get_available_dbms($dbms = false, $return_unavailable = false, $only_20x_options = false) function get_available_dbms($dbms = false, $return_unavailable = false, $only_20x_options = false)
{ {
global $lang;
$available_dbms = array( $available_dbms = array(
'firebird' => array( 'firebird' => array(
'LABEL' => 'FireBird', 'LABEL' => 'FireBird',
@ -172,12 +173,14 @@ function get_available_dbms($dbms = false, $return_unavailable = false, $only_20
*/ */
function dbms_select($default = '', $only_20x_options = false) function dbms_select($default = '', $only_20x_options = false)
{ {
global $lang;
$available_dbms = get_available_dbms(false, false, $only_20x_options); $available_dbms = get_available_dbms(false, false, $only_20x_options);
$dbms_options = ''; $dbms_options = '';
foreach ($available_dbms as $dbms_name => $details) foreach ($available_dbms as $dbms_name => $details)
{ {
$selected = ($dbms_name == $default) ? ' selected="selected"' : ''; $selected = ($dbms_name == $default) ? ' selected="selected"' : '';
$dbms_options .= '<option value="' . $dbms_name . '"' . $selected .'>' . $details['LABEL'] . '</option>'; $dbms_options .= '<option value="' . $dbms_name . '"' . $selected .'>' . $lang['DLL_' . strtoupper($dbms_name)] . '</option>';
} }
return $dbms_options; return $dbms_options;
} }