summaryrefslogtreecommitdiff
path: root/framework/I18N/core/MessageSource_gettext.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/I18N/core/MessageSource_gettext.php')
-rw-r--r--framework/I18N/core/MessageSource_gettext.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/framework/I18N/core/MessageSource_gettext.php b/framework/I18N/core/MessageSource_gettext.php
index 78fa5259..c92577d4 100644
--- a/framework/I18N/core/MessageSource_gettext.php
+++ b/framework/I18N/core/MessageSource_gettext.php
@@ -431,7 +431,11 @@ class MessageSource_gettext extends MessageSource
$po_file = $this->getPOFile($mo_file);
$dir = dirname($mo_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");