Path for bug on *nix systems

master
pecesama 2007-07-06 06:49:27 +00:00
parent ff182eaa70
commit 54c4eb203c
1 changed files with 1 additions and 0 deletions

View File

@ -146,6 +146,7 @@
$path = getcwd();
$dir = (substr(PHP_OS, 0, 3) == 'WIN') ? $path."\\".$themes_dir : $path."/".$themes_dir;
$dir = str_replace("admin\\", "", $dir);
$dir = str_replace("admin/", "", $dir);
$handle = opendir($dir);
$i=0;
while($filename = readdir($handle)) {