Path for bug on *nix systems
parent
ff182eaa70
commit
54c4eb203c
|
|
@ -146,6 +146,7 @@
|
||||||
$path = getcwd();
|
$path = getcwd();
|
||||||
$dir = (substr(PHP_OS, 0, 3) == 'WIN') ? $path."\\".$themes_dir : $path."/".$themes_dir;
|
$dir = (substr(PHP_OS, 0, 3) == 'WIN') ? $path."\\".$themes_dir : $path."/".$themes_dir;
|
||||||
$dir = str_replace("admin\\", "", $dir);
|
$dir = str_replace("admin\\", "", $dir);
|
||||||
|
$dir = str_replace("admin/", "", $dir);
|
||||||
$handle = opendir($dir);
|
$handle = opendir($dir);
|
||||||
$i=0;
|
$i=0;
|
||||||
while($filename = readdir($handle)) {
|
while($filename = readdir($handle)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue