diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-11-22 18:00:45 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-11-22 18:00:45 +0000 |
commit | 3d9eb90d728df67b86206d969a182a3871c44d50 (patch) | |
tree | 5948ff0ba8f7e8caea1a7850b51f024a0acab705 /phpBB/includes | |
parent | 7d1e8ed70e07730f740166ed8d70be4a490c4827 (diff) | |
download | forums-3d9eb90d728df67b86206d969a182a3871c44d50.tar forums-3d9eb90d728df67b86206d969a182a3871c44d50.tar.gz forums-3d9eb90d728df67b86206d969a182a3871c44d50.tar.bz2 forums-3d9eb90d728df67b86206d969a182a3871c44d50.tar.xz forums-3d9eb90d728df67b86206d969a182a3871c44d50.zip |
make sure phpbb_chmod is able to be called
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9073 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/acm/acm_file.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/phpBB/includes/acm/acm_file.php b/phpBB/includes/acm/acm_file.php index 577f893e77..ece2a96779 100644 --- a/phpBB/includes/acm/acm_file.php +++ b/phpBB/includes/acm/acm_file.php @@ -93,6 +93,12 @@ class acm @flock($fp, LOCK_UN); fclose($fp); + if (!function_exists('phpbb_chmod')) + { + global $phpbb_root_path; + include($phpbb_root_path . 'includes/functions.' . $phpEx); + } + phpbb_chmod($this->cache_dir . 'data_global.' . $phpEx, CHMOD_WRITE); } else @@ -197,6 +203,12 @@ class acm @flock($fp, LOCK_UN); fclose($fp); + if (!function_exists('phpbb_chmod')) + { + global $phpbb_root_path; + include($phpbb_root_path . 'includes/functions.' . $phpEx); + } + phpbb_chmod($this->cache_dir . "data{$var_name}.$phpEx", CHMOD_WRITE); } } @@ -416,6 +428,12 @@ class acm @flock($fp, LOCK_UN); fclose($fp); + if (!function_exists('phpbb_chmod')) + { + global $phpbb_root_path; + include($phpbb_root_path . 'includes/functions.' . $phpEx); + } + phpbb_chmod($filename, CHMOD_WRITE); $query_result = $query_id; |