[limb-svn] r6831 - 3.x/trunk/limb/i18n/src/translation

svn at limb-project.com svn at limb-project.com
Thu Mar 6 18:29:10 MSK 2008


Author: korchasa
Date: 2008-03-06 18:29:09 +0300 (Thu, 06 Mar 2008)
New Revision: 6831
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6831

Modified:
   3.x/trunk/limb/i18n/src/translation/lmbQtDictionaryBackend.class.php
Log:
-- fix directory permissions

Modified: 3.x/trunk/limb/i18n/src/translation/lmbQtDictionaryBackend.class.php
===================================================================
--- 3.x/trunk/limb/i18n/src/translation/lmbQtDictionaryBackend.class.php	2008-03-06 13:55:07 UTC (rev 6830)
+++ 3.x/trunk/limb/i18n/src/translation/lmbQtDictionaryBackend.class.php	2008-03-06 15:29:09 UTC (rev 6831)
@@ -8,6 +8,7 @@
  */
 lmb_require('limb/i18n/src/translation/lmbI18NDictionary.class.php');
 lmb_require('limb/fs/src/exception/lmbFileNotFoundException.class.php');
+lmb_require('limb/fs/src/lmbFs.class.php');
 
 @define('LIMB_TRANSLATIONS_INCLUDE_PATH', 'i18n/translations;limb/*/i18n/translations');
 
@@ -192,7 +193,7 @@
 
     $cache = $this->_getCacheFile($file);
     if(!is_dir($dir = dirname($cache)))
-      mkdir($dir);
+      lmbFs::mkdir($dir, 0775);
     file_put_contents($this->_getCacheFile($file), serialize($dictionary->getTranslations()), LOCK_EX);
   }
 
@@ -201,5 +202,3 @@
     return $this->cache_dir . '/i18n-qt/' . md5(realpath($file));
   }
 }
-
-



More information about the limb-svn mailing list