diff options
author | wei <> | 2006-08-05 03:42:04 +0000 |
---|---|---|
committer | wei <> | 2006-08-05 03:42:04 +0000 |
commit | c927f9343001b456c1fa25dc541c3f1b005510f8 (patch) | |
tree | 77471b0dbb0327e1c601ec4ffaeb02d9222dc4bd /framework/I18N/core | |
parent | 58f7aa0ebe9920d33a22b95c3f73fc4b70a75426 (diff) |
Fixed #278
Diffstat (limited to 'framework/I18N/core')
-rw-r--r-- | framework/I18N/core/Gettext/MO.php | 1 | ||||
-rw-r--r-- | framework/I18N/core/Gettext/PO.php | 1 | ||||
-rw-r--r-- | framework/I18N/core/MessageSource_XLIFF.php | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/framework/I18N/core/Gettext/MO.php b/framework/I18N/core/Gettext/MO.php index f3be1a30..a93e956f 100644 --- a/framework/I18N/core/Gettext/MO.php +++ b/framework/I18N/core/Gettext/MO.php @@ -349,6 +349,7 @@ class TGettext_MO extends TGettext // done
@flock($this->_handle, LOCK_UN);
@fclose($this->_handle);
+ chmod($file,0777);
return true;
}
}
diff --git a/framework/I18N/core/Gettext/PO.php b/framework/I18N/core/Gettext/PO.php index 3c69c091..90942fa1 100644 --- a/framework/I18N/core/Gettext/PO.php +++ b/framework/I18N/core/Gettext/PO.php @@ -154,6 +154,7 @@ class TGettext_PO extends TGettext //done
@flock($fh, LOCK_UN);
@fclose($fh);
+ chmod($file,0777);
return true;
}
}
diff --git a/framework/I18N/core/MessageSource_XLIFF.php b/framework/I18N/core/MessageSource_XLIFF.php index 15af971a..7f2f27c5 100644 --- a/framework/I18N/core/MessageSource_XLIFF.php +++ b/framework/I18N/core/MessageSource_XLIFF.php @@ -481,6 +481,7 @@ class MessageSource_XLIFF extends MessageSource if(!is_dir($dir))
throw new TException("Unable to create directory $dir");
file_put_contents($file, $this->getTemplate($catalogue));
+ chmod($file, 0777);
return array($variant, $file);
}
|