Changeset 964

Show
Ignore:
Timestamp:
07/25/08 10:19:56 (1 month ago)
Author:
arnoschn
Message:

#52: removing chmod from AkCache? and moving it into testcase, where it belongs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/arnoschn/cache/lib/AkCache.php

    r963 r964  
    249249                 if(!is_dir($options['cacheDir'])){ 
    250250                    Ak::make_dir($options['cacheDir'], array('base_path'=>dirname($options['cacheDir']))); 
    251                     $res = @chmod($options['cacheDir'],0777); 
    252                     if (!$res) { 
    253                         trigger_error(Ak::t('Cannot change cache dir %dir permissions',array('%dir'=>$options['cacheDir'])), E_USER_WARNING); 
    254                     } 
    255251                } 
    256252                $this->_driverInstance =& new Cache_Lite($options); 
  • branches/arnoschn/cache/test/unit/lib/AkActionController/_action_caching.php

    r899 r964  
    1010    function test_init() 
    1111    { 
     12        $settings = Ak::getSettings('caching',false); 
     13        if (!isset($settings['handler']['options']['cacheDir'])) { 
     14            $cacheDir = AK_CACHE_DIR.DS; 
     15        } else { 
     16            $cacheDir = $settings['handler']['options']['cacheDir']; 
     17        } 
     18        chmod($cacheDir,0777); 
    1219        $this->_flushCache('akelos.org'); 
    1320        $this->_flushCache('www.akelos.org');