浏览代码

Path for bug on *nix systems

pecesama 18 年前
父节点
当前提交
54c4eb203c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      classes/functions.php

+ 1 - 0
classes/functions.php 查看文件

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