Ignore:
Timestamp:
09/28/07 21:08:59 (5 years ago)
Author:
hverton
Message:

Reorganized the directory structure. All directories to which the webserver needs write access are now in /files (cache and tplcache directories). Smarty now supports multiple websites and multiple themes writing to the same cache directories)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/Smarty-2.6.18/Smarty.class.php

    r843 r847  
    7373     * @var string 
    7474     */ 
    75     var $template_dir    =  array('templates'); 
     75    var $template_dir    =  'templates'; 
    7676 
    7777    /** 
     
    11201120    { 
    11211121        static $_cache_info = array(); 
    1122  
     1122         
    11231123        $_smarty_old_error_level = $this->debugging ? error_reporting() : error_reporting(isset($this->error_reporting) 
    11241124               ? $this->error_reporting : error_reporting() & ~E_NOTICE); 
     
    17521752            // make source name safe for filename 
    17531753            $_filename = urlencode(basename($auto_source)); 
    1754  
    1755             // WANWIZARD: if the filename contains illegal characters, use the MD5-hash 
    1756             if (preg_match("%[\\\/:;*?\"\[\]\%]%", $_filename)) { 
    1757                 $_filename = md5($_filename); 
    1758             } 
    1759             // WANWIZARD: end-of-mod 
    1760  
    17611754            $_crc32 = sprintf('%08X', crc32($auto_source)); 
    17621755            // prepend %% to avoid name conflicts with 
     
    17641757            $_crc32 = substr($_crc32, 0, 2) . $_compile_dir_sep . 
    17651758                      substr($_crc32, 0, 3) . $_compile_dir_sep . $_crc32; 
    1766             $_return .= $_filename . '.%%' . $_crc32 . '%%'; 
    1767         } 
     1759            $_return .= '%%' . $_crc32 . '%%' . $_filename; 
     1760        } 
     1761 
    17681762        return $_return; 
    17691763    } 
Note: See TracChangeset for help on using the changeset viewer.