mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed token fontpath in windows. Ticket #3316.
(cherry picked from commit 2dffe9b1b807ea3bf739cb89b6d08b2ca06c24a1)
This commit is contained in:
parent
b52223a7ea
commit
bed4f8e3d8
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user