1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

add some properties

change phpbb_chmod to phpbb::$system->chmod()
also changed chmod behaviour to the most failsafe method. If we are not able to tell the exact outcome, we simply do not mess with it.

git-svn-id: file:///svn/phpbb/trunk@9296 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2009-01-22 15:59:00 +00:00
parent 6d380be53d
commit 950842de5c
17 changed files with 609 additions and 587 deletions

View File

@@ -263,7 +263,7 @@ class filespec
*
* @param string $destination_path Destination path, for example phpbb::$config['avatar_path']
* @param bool $overwrite If set to true, an already existing file will be overwritten
* @param string $chmod Permission mask for chmodding the file after a successful move. The mode entered here reflects the mode defined by {@link phpbb_chmod()}
* @param string $chmod Permission mask for chmodding the file after a successful move. The mode entered here is the octal permission mask.
*
* @access public
*/
@@ -348,7 +348,7 @@ class filespec
break;
}
phpbb_chmod($this->destination_file, $chmod);
phpbb::$system->chmod($this->destination_file, $chmod);
}
// Try to get real filesize from destination folder