Minor improvements (#882)

* Minor improvements

* Updated

* Updated

* Updated

* Update privmsg.php

* Updated

* Update admin_attach_cp.php
This commit is contained in:
Roman Kelesidis 2023-09-04 01:01:01 +07:00 committed by GitHub
commit 4b453de64a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
75 changed files with 699 additions and 735 deletions

View file

@ -120,8 +120,8 @@ function category_select($select_name, $group_id = 0)
}
}
$types = array(NONE_CAT);
$modes = array('none');
$types = [NONE_CAT];
$modes = ['none'];
for ($i = 0, $iMax = count($types_category); $i < $iMax; $i++) {
$types[] = $types_category[$i];
@ -152,8 +152,8 @@ function size_select($select_name, $size_compare)
{
global $lang;
$size_types_text = array($lang['BYTES'], $lang['KB'], $lang['MB']);
$size_types = array('b', 'kb', 'mb');
$size_types_text = [$lang['BYTES'], $lang['KB'], $lang['MB']];
$size_types = ['b', 'kb', 'mb'];
$select_field = '<select name="' . $select_name . '">';