mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-27 10:14:47 +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:
@@ -93,12 +93,7 @@ class phpbb_acm_file extends phpbb_acm_abstract
|
||||
@flock($fp, LOCK_UN);
|
||||
fclose($fp);
|
||||
|
||||
if (!function_exists('phpbb_chmod'))
|
||||
{
|
||||
include(PHPBB_ROOT_PATH . 'includes/functions.' . PHP_EXT);
|
||||
}
|
||||
|
||||
phpbb_chmod($filename, phpbb::CHMOD_WRITE);
|
||||
phpbb::$system->chmod($filename, phpbb::CHMOD_READ | phpbb::CHMOD_WRITE);
|
||||
}
|
||||
|
||||
return $data;
|
||||
@@ -172,12 +167,7 @@ class phpbb_acm_file extends phpbb_acm_abstract
|
||||
@flock($fp, LOCK_UN);
|
||||
fclose($fp);
|
||||
|
||||
if (!function_exists('phpbb_chmod'))
|
||||
{
|
||||
include(PHPBB_ROOT_PATH . 'includes/functions.' . PHP_EXT);
|
||||
}
|
||||
|
||||
phpbb_chmod($filename, phpbb::CHMOD_WRITE);
|
||||
phpbb::$system->chmod($filename, phpbb::CHMOD_READ | phpbb::CHMOD_WRITE);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user