From a42c235cabece6d8c28aeb733c78d8f873c95705 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 12 Apr 2023 14:44:01 +0200 Subject: [PATCH] #10917 Fix icon --- pandora_console/godmode/setup/os.builder.php | 23 +++++++++++++++++++- pandora_console/include/functions_ui.php | 11 ++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/setup/os.builder.php b/pandora_console/godmode/setup/os.builder.php index 4c79ae4c07..5f394b9fbe 100644 --- a/pandora_console/godmode/setup/os.builder.php +++ b/pandora_console/godmode/setup/os.builder.php @@ -116,6 +116,22 @@ function get_list_os_icons_dir() } } + $items2 = scandir($config['homedir'].'/images/os_icons'); + + foreach ($items2 as $item2) { + if (strstr($item2, '_small.png') || strstr($item2, '_small.gif') + || strstr($item2, '_small.jpg') + ) { + continue; + } + + if (strstr($item2, '.png') || strstr($item2, '.gif') + || strstr($item2, '.jpg') + ) { + $return[$item2] = $item2; + } + } + return $return; } @@ -124,10 +140,15 @@ function get_list_os_icons_dir()