Commit a2783db6 by seldaek

bad day.

git-svn-id: svn://dwoo.org/dwoo/trunk@246 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent bd350844
......@@ -475,7 +475,7 @@ class Dwoo_Template_String implements Dwoo_ITemplate
// enforce the correct mode for all directories created
if (strpos(PHP_OS, 'WIN') !== 0 && $baseDir !== null) {
$path = strtr(str_replace($baseDir, '', $path), '\\', '/');
$folders = explode('/', trim($path, '/');
$folders = explode('/', trim($path, '/'));
foreach ($folders as $folder) {
$baseDir .= $folder . DIRECTORY_SEPARATOR;
chmod($baseDir, $chmod);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment