From 7d868c13a401d13f8777c0db5626832ac3f3a952 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 5 Aug 2006 01:05:07 +0000 Subject: Fixed #318 and add chmod for each mkdir --- framework/I18N/core/MessageSource_XLIFF.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (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 2194ca41..15af971a 100644 --- a/framework/I18N/core/MessageSource_XLIFF.php +++ b/framework/I18N/core/MessageSource_XLIFF.php @@ -473,7 +473,11 @@ class MessageSource_XLIFF extends MessageSource $variant = array_shift($variants); $file = $this->getSource($variant); $dir = dirname($file); - if(!is_dir($dir)) @mkdir($dir); + if(!is_dir($dir)) + { + @mkdir($dir); + @chmod($dir,0777); + } if(!is_dir($dir)) throw new TException("Unable to create directory $dir"); file_put_contents($file, $this->getTemplate($catalogue)); -- cgit v1.2.3