Minor improvements (#269)

This commit is contained in:
Roman Kelesidis 2023-09-25 21:20:33 +07:00 committed by GitHub
parent 3eb4e90b82
commit dfef1bfd29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ function download_select($select_name, $group_id = 0)
*/ */
function category_select($select_name, $group_id = 0) function category_select($select_name, $group_id = 0)
{ {
global $types_category, $modes_category; global $types_category, $modes_category, $lang;
$sql = 'SELECT group_id, cat_id FROM ' . BB_EXTENSION_GROUPS; $sql = 'SELECT group_id, cat_id FROM ' . BB_EXTENSION_GROUPS;
@ -130,7 +130,7 @@ function category_select($select_name, $group_id = 0)
} }
$types = array(NONE_CAT); $types = array(NONE_CAT);
$modes = array('none'); $modes = array($lang['NONE']);
for ($i = 0; $i < sizeof($types_category); $i++) for ($i = 0; $i < sizeof($types_category); $i++)
{ {
@ -248,4 +248,4 @@ function default_quota_limit_select($select_name, $default_quota = 0)
$quota_select .= '</select>'; $quota_select .= '</select>';
return $quota_select; return $quota_select;
} }