Skip to content
Snippets Groups Projects
Commit 8d52fdb7 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix chmodr

parent 08cfe4b6
No related branches found
No related tags found
No related merge requests found
......@@ -166,7 +166,7 @@ class OC_HELPER {
*
* Makes 2048 to 2 kB.
*/
function chmodr($path, $filemode) {
static function chmodr($path, $filemode) {
if (!is_dir($path))
return chmod($path, $filemode);
$dh = opendir($path);
......@@ -177,7 +177,7 @@ class OC_HELPER {
return FALSE;
elseif(!is_dir($fullpath) && !chmod($fullpath, $filemode))
return FALSE;
elseif(!chmodr($fullpath, $filemode))
elseif(!self::chmodr($fullpath, $filemode))
return FALSE;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment