mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed token fontpath in windows. Ticket #3316.
This commit is contained in:
parent
bb26f4b82d
commit
2dffe9b1b8
@ -647,14 +647,15 @@ ui_require_jquery_file ("colorpicker");
|
|||||||
|
|
||||||
function load_fonts() {
|
function load_fonts() {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
$dir = scandir($config['homedir'] . '/include/fonts/');
|
$home = str_replace('\\', '/', $config['homedir'] );
|
||||||
|
$dir = scandir($home. '/include/fonts/');
|
||||||
|
|
||||||
$fonts = array();
|
$fonts = array();
|
||||||
|
|
||||||
foreach ($dir as $file) {
|
foreach ($dir as $file) {
|
||||||
if (strstr($file, '.ttf') !== false) {
|
if (strstr($file, '.ttf') !== false) {
|
||||||
$fonts[$config['homedir'] . '/include/fonts/' . $file] = $file;
|
$fonts[$home . '/include/fonts/' . $file] = $file;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user