Changeset 1064
- Timestamp:
- 11/22/07 23:15:42 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/util/cache/stubFileCacheContainer.php
r804 r1064 7 7 * @subpackage util_cache 8 8 */ 9 stubClassLoader::load('net.stubbles.util.cache.stubAbstractCacheContainer', 9 stubClassLoader::load('net.stubbles.util.stubRegistry', 10 'net.stubbles.util.cache.stubAbstractCacheContainer', 10 11 'net.stubbles.util.cache.stubCacheContainer' 11 12 ); … … 46 47 $this->cacheDirectory = $directory . DIRECTORY_SEPARATOR . $this->id; 47 48 if (file_exists($this->cacheDirectory) === false) { 48 mkdir($this->cacheDirectory, 0700, true);49 mkdir($this->cacheDirectory, stubRegistry::getConfig('net.stubbles.filemode', 0700), true); 49 50 } 50 51 } trunk/src/main/php/net/stubbles/websites/stubPageXJConfFactory.php
r930 r1064 7 7 * @subpackage websites 8 8 */ 9 stubClassLoader::load('net.stubbles.util.xjconf.xjconf', 9 stubClassLoader::load('net.stubbles.util.stubRegistry', 10 'net.stubbles.util.xjconf.xjconf', 10 11 'net.stubbles.websites.stubPageConfigurationException', 11 12 'net.stubbles.websites.stubPageFactory' … … 95 96 96 97 if (file_exists(dirname($cacheSource)) == false) { 97 mkdir(dirname($cacheSource), 0700, true);98 mkdir(dirname($cacheSource), stubRegistry::getConfig('net.stubbles.filemode', 0700), true); 98 99 } 99 100 trunk/src/main/php/net/stubbles/xml/stubXMLXIncludeStreamWrapper.php
r888 r1064 8 8 */ 9 9 stubClassLoader::load('net.stubbles.lang.exceptions.stubIOException', 10 'net.stubbles.util.stubRegistry', 10 11 'net.stubbles.xml.stubXMLException', 11 12 'net.stubbles.xml.xsl.stubXSLProcessor' … … 106 107 self::$cachePath = $cachePath . '/xml/xinc'; 107 108 if (file_exists($cachePath) == false) { 108 if (!@mkdir($cachePath, 0700, true)) {109 if (!@mkdir($cachePath, stubRegistry::getConfig('net.stubbles.filemode', 0700), true)) { 109 110 throw new stubIOException("Can not create cache directory " . $cachePath . '.'); 110 111 } … … 326 327 $this->cachedFileName = self::$cachePath . '/' . $language . '/' . $fileName; 327 328 if (file_exists(dirname($this->cachedFileName)) === false) { 328 mkdir(dirname($this->cachedFileName), 0700, true);329 mkdir(dirname($this->cachedFileName), stubRegistry::getConfig('net.stubbles.filemode', 0700), true); 329 330 } 330 331 }
