From cd236d693d1df3e20c370c97a98c51ba3fcbd610 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 17 Jan 2007 22:26:53 +0000 Subject: Added PRADO_CHMOD constant so that users can specify the permission of PRADO-created directories --- framework/I18N/core/MessageSource_XLIFF.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/I18N/core/MessageSource_XLIFF.php') 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); } -- cgit v1.2.3