Commit 1a0a62b6 by Chris Wilson

Report which directory chmod failed on as an exception.

parent 68c7cb0a
......@@ -490,7 +490,12 @@ class Dwoo_Template_String implements Dwoo_ITemplate
$folders = explode('/', trim($path, '/'));
foreach ($folders as $folder) {
$baseDir .= $folder . DIRECTORY_SEPARATOR;
chmod($baseDir, $chmod);
if (!chmod($baseDir, $chmod))
{
throw new Exception("Unable to chmod ".
"$baseDir to $chmod: ".
print_r(error_get_last(), TRUE));
}
}
}
}
......
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