|
@@ -1083,20 +1083,20 @@ function EditMembergroup()
|
|
|
$imageExts = array('png', 'jpg', 'jpeg', 'bmp', 'gif');
|
|
|
|
|
|
// Scan the directory.
|
|
|
- $context['possibleStars'] = array();
|
|
|
- if ($files = scandir($settings['default_theme_dir'] . '/images/stars'))
|
|
|
+ $context['possible_icons'] = array();
|
|
|
+ if ($files = scandir($settings['default_theme_dir'] . '/images/membericons'))
|
|
|
{
|
|
|
// Loop through every file in the directory.
|
|
|
foreach ($files as $value)
|
|
|
{
|
|
|
// Grab the image extension.
|
|
|
- $ext = pathinfo($settings['default_theme_dir'] . '/images/stars/' . $value, PATHINFO_EXTENSION);
|
|
|
+ $ext = pathinfo($settings['default_theme_dir'] . '/images/membericons/' . $value, PATHINFO_EXTENSION);
|
|
|
|
|
|
// If the extension is not empty, and it is valid,
|
|
|
if (!empty($ext) && in_array($ext, $imageExts))
|
|
|
{
|
|
|
// Get the size of the image.
|
|
|
- $image_info = getimagesize($settings['default_theme_dir'] . '/images/stars/' . $value);
|
|
|
+ $image_info = getimagesize($settings['default_theme_dir'] . '/images/membericons/' . $value);
|
|
|
|
|
|
// If this is bigger than 128 in width or 32 in height, skip this one.
|
|
|
if ($image_info == false || $image_info[0] > 128 || $image_info[1] > 32)
|
|
@@ -1104,13 +1104,13 @@ function EditMembergroup()
|
|
|
|
|
|
// Else it's valid. Add it in.
|
|
|
else
|
|
|
- $context['possibleStars'][] = $value;
|
|
|
+ $context['possible_icons'][] = $value;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// Insert our JS, if we have possible stars.
|
|
|
- if (!empty($context['possibleStars']))
|
|
|
+ if (!empty($context['possible_icons']))
|
|
|
$context['html_headers'] .= '
|
|
|
<script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/stardropdown.js"></script>';
|
|
|
|