2011-08-25 Javier Lanz <javier.lanz@artica.es>

* godmode/groups/configure_group.php: Removed the non-desired icons

        Fixes: #3397548



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4823 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
javilanz 2011-08-25 17:04:50 +00:00
parent e742c3cf26
commit eb75481eab
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2011-08-25 Javier Lanz <javier.lanz@artica.es>
* godmode/groups/configure_group.php: Removed the non-desired icons
Fixes: #3397548
2011-08-25 Sergio Martin <sergio.martin@artica.es>
* include/db/mysql.php: Fixed a bug in the sql_commit

View File

@ -79,6 +79,11 @@ $table->data[0][1] = html_print_input_text ('name', $name, '', 35, 100, true);
$table->data[1][0] = __('Icon');
$files = list_files ('images/groups_small/', "png", 1, 0);
foreach ($files as $key => $f) {//Remove from the list the non-desired .png files
if (strpos ($f, '.bad.png') !== false || strpos ($f, '.default.png') !== false || strpos ($f, '.ok.png') !== false || strpos ($f, '.warning.png') !== false) {
unset ($files[$key]);
}
}
$table->data[1][1] = html_print_select ($files, 'icon', $icon, '', 'None', '', true);
$table->data[1][1] .= ' <span id="icon_preview">';
if ($icon) {