diff --git a/pandora_console/godmode/setup/setup_visuals.php b/pandora_console/godmode/setup/setup_visuals.php index ec927a38e2..8fea101530 100755 --- a/pandora_console/godmode/setup/setup_visuals.php +++ b/pandora_console/godmode/setup/setup_visuals.php @@ -647,14 +647,15 @@ ui_require_jquery_file ("colorpicker"); function load_fonts() { global $config; - - $dir = scandir($config['homedir'] . '/include/fonts/'); - + + $home = str_replace('\\', '/', $config['homedir'] ); + $dir = scandir($home. '/include/fonts/'); + $fonts = array(); foreach ($dir as $file) { if (strstr($file, '.ttf') !== false) { - $fonts[$config['homedir'] . '/include/fonts/' . $file] = $file; + $fonts[$home . '/include/fonts/' . $file] = $file; } }