From b7f95ce37ae577e95a81e64aa2aaf3e2e698109d Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 5 Aug 2006 21:34:30 +0000 Subject: merge from 3.0 branch till 1329. --- framework/I18N/core/MessageSource_gettext.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'framework/I18N/core/MessageSource_gettext.php') 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"); -- cgit v1.2.3