Browse Source

Path for bug on *nix systems

pecesama 18 years ago
parent
commit
54c4eb203c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      classes/functions.php

+ 1 - 0
classes/functions.php View File

146
 		$path = getcwd();
146
 		$path = getcwd();
147
  		$dir = (substr(PHP_OS, 0, 3) == 'WIN') ? $path."\\".$themes_dir : $path."/".$themes_dir;
147
  		$dir = (substr(PHP_OS, 0, 3) == 'WIN') ? $path."\\".$themes_dir : $path."/".$themes_dir;
148
 		$dir = str_replace("admin\\", "", $dir);
148
 		$dir = str_replace("admin\\", "", $dir);
149
+		$dir = str_replace("admin/", "", $dir);
149
  		$handle = opendir($dir);
150
  		$handle = opendir($dir);
150
  		$i=0;
151
  		$i=0;
151
  		while($filename = readdir($handle)) {
152
  		while($filename = readdir($handle)) {