mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Minor improvements (#269)
This commit is contained in:
parent
3eb4e90b82
commit
dfef1bfd29
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user