]> git.mjollnir.org Git - moodle.git/commitdiff
lib/textlib.class: Cache dir is now created correctly, allowing speed increase (SR...
authormartinlanghoff <martinlanghoff>
Tue, 31 Oct 2006 05:03:54 +0000 (05:03 +0000)
committermartinlanghoff <martinlanghoff>
Tue, 31 Oct 2006 05:03:54 +0000 (05:03 +0000)
Previous logic had dir created only when mbstring wasn't used, but the
typo3 lib needs to cache some data regardless, for the specCharsToASCII
function, which uses internal translation tables.

Author: Luke Hudson <luke@catalyst.net.nz>

lib/textlib.class.php

index add5e0649a918cd186aa37777d5b39066ea32670..d80ceb51705ef5093fbf9391e069478068606617 100644 (file)
         $GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] = 'mbstring';
     } else {
         $GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] = '';
-    /// And this directoy must exist to allow Typo to cache conversion 
-    /// tables when using internal functions
-        make_upload_directory('temp/typo3temp/cs');
     }
 
+/// And this directory must exist to allow Typo to cache conversion 
+/// tables when using internal functions
+    make_upload_directory('temp/typo3temp/cs');
+
 /// Default mask for Typo
     $GLOBALS['TYPO3_CONF_VARS']['BE']['fileCreateMask'] = $CFG->directorypermissions;