diff options
author | xue <> | 2007-01-17 22:26:53 +0000 |
---|---|---|
committer | xue <> | 2007-01-17 22:26:53 +0000 |
commit | cd236d693d1df3e20c370c97a98c51ba3fcbd610 (patch) | |
tree | 4b84a25cc06db000420b75f2ce1f390246869662 /framework/I18N/core/MessageSource_XLIFF.php | |
parent | 74acb5d2a4426cb4ae7f0fdd86e23c1459813a60 (diff) |
Added PRADO_CHMOD constant so that users can specify the permission of PRADO-created directories
Diffstat (limited to 'framework/I18N/core/MessageSource_XLIFF.php')
-rw-r--r-- | framework/I18N/core/MessageSource_XLIFF.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/I18N/core/MessageSource_XLIFF.php b/framework/I18N/core/MessageSource_XLIFF.php index 1f537932..eafc0983 100644 --- a/framework/I18N/core/MessageSource_XLIFF.php +++ b/framework/I18N/core/MessageSource_XLIFF.php @@ -478,15 +478,15 @@ class MessageSource_XLIFF extends MessageSource $variant = array_shift($variants);
$file = $this->getSource($variant);
$dir = dirname($file);
- if(!is_dir($dir))
+ if(!is_dir($dir))
{
@mkdir($dir);
- @chmod($dir,0777);
+ @chmod($dir,PRADO_CHMOD);
}
if(!is_dir($dir))
throw new TException("Unable to create directory $dir");
file_put_contents($file, $this->getTemplate($catalogue));
- chmod($file, 0777);
+ chmod($file, PRADO_CHMOD);
return array($variant, $file);
}
|