prevent to create default js label dir, if doesn't exist

This commit is contained in:
erik
2011-03-15 16:02:49 -04:00
committed by Alexandre Rosenfeld
parent aa7809ec8d
commit 9becc3b5aa

View File

@@ -152,6 +152,9 @@ class Translation extends BaseTranslation {
if( ! is_dir(dirname($cacheFile)) )
G::mk_dir(dirname($cacheFile));
if( ! is_dir(dirname($cacheFileJS)) )
G::mk_dir(dirname($cacheFileJS));
$f = fopen( $cacheFile , 'w+');
fwrite( $f , "<?php\n" );