fix chmodr

This commit is contained in:
Robin Appelman 2011-04-24 15:23:18 +02:00
parent 08cfe4b6ff
commit 8d52fdb7fa
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}