summaryrefslogtreecommitdiff
path: root/framework/I18N/core/MessageSource_XLIFF.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/I18N/core/MessageSource_XLIFF.php')
-rw-r--r--framework/I18N/core/MessageSource_XLIFF.php6
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);
}