Changeset 1064

Show
Ignore:
Timestamp:
11/22/07 23:15:42 (8 months ago)
Author:
mikey
Message:

first step for bug #98: mode for new directories can be set via registry

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/util/cache/stubFileCacheContainer.php

    r804 r1064  
    77 * @subpackage  util_cache 
    88 */ 
    9 stubClassLoader::load('net.stubbles.util.cache.stubAbstractCacheContainer', 
     9stubClassLoader::load('net.stubbles.util.stubRegistry', 
     10                      'net.stubbles.util.cache.stubAbstractCacheContainer', 
    1011                      'net.stubbles.util.cache.stubCacheContainer' 
    1112); 
     
    4647        $this->cacheDirectory = $directory . DIRECTORY_SEPARATOR . $this->id; 
    4748        if (file_exists($this->cacheDirectory) === false) { 
    48             mkdir($this->cacheDirectory, 0700, true); 
     49            mkdir($this->cacheDirectory, stubRegistry::getConfig('net.stubbles.filemode', 0700), true); 
    4950        } 
    5051    } 
  • trunk/src/main/php/net/stubbles/websites/stubPageXJConfFactory.php

    r930 r1064  
    77 * @subpackage  websites 
    88 */ 
    9 stubClassLoader::load('net.stubbles.util.xjconf.xjconf', 
     9stubClassLoader::load('net.stubbles.util.stubRegistry', 
     10                      'net.stubbles.util.xjconf.xjconf', 
    1011                      'net.stubbles.websites.stubPageConfigurationException', 
    1112                      'net.stubbles.websites.stubPageFactory' 
     
    9596         
    9697        if (file_exists(dirname($cacheSource)) == false) { 
    97             mkdir(dirname($cacheSource), 0700, true); 
     98            mkdir(dirname($cacheSource), stubRegistry::getConfig('net.stubbles.filemode', 0700), true); 
    9899        } 
    99100         
  • trunk/src/main/php/net/stubbles/xml/stubXMLXIncludeStreamWrapper.php

    r888 r1064  
    88 */ 
    99stubClassLoader::load('net.stubbles.lang.exceptions.stubIOException', 
     10                      'net.stubbles.util.stubRegistry', 
    1011                      'net.stubbles.xml.stubXMLException', 
    1112                      'net.stubbles.xml.xsl.stubXSLProcessor' 
     
    106107        self::$cachePath = $cachePath . '/xml/xinc'; 
    107108        if (file_exists($cachePath) == false) { 
    108             if (!@mkdir($cachePath, 0700, true)) { 
     109            if (!@mkdir($cachePath, stubRegistry::getConfig('net.stubbles.filemode', 0700), true)) { 
    109110                throw new stubIOException("Can not create cache directory " . $cachePath . '.'); 
    110111            } 
     
    326327        $this->cachedFileName = self::$cachePath . '/' . $language  . '/' . $fileName; 
    327328        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); 
    329330        } 
    330331    }