cvs: smarty /libs/core core.assemble_auto_filename.php core.write_cache_paths_file.php

"Monte Ohrt" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmohrt1056580144@cvsserver>
mohrt		Wed Jun 25 18:29:04 2003 EDT

  Modified files:              
    /smarty/libs/core	core.assemble_auto_filename.php 
                     	core.write_cache_paths_file.php 
  Log:
  fix typo, fix write_cache_paths logic
  
  
Index: smarty/libs/core/core.assemble_auto_filename.php
diff -u smarty/libs/core/core.assemble_auto_filename.php:1.5 smarty/libs/core/core.assemble_auto_filename.php:1.6
--- smarty/libs/core/core.assemble_auto_filename.php:1.5	Wed Jun 25 17:50:34 2003
+++ smarty/libs/core/core.assemble_auto_filename.php	Wed Jun 25 18:29:03 2003
@@ -18,7 +18,7 @@
 function smarty_core_assemble_auto_filename($params, &$smarty)
 {	
 
-	$_compile_dir_sep =  $this->use_sub_dirs ? DIRECTORY_SEPARATOR : '^';
+	$_compile_dir_sep =  $smarty->use_sub_dirs ? DIRECTORY_SEPARATOR : '^';
 		
     if(@is_dir($params['auto_base'])) {
         $_return = $params['auto_base'] . DIRECTORY_SEPARATOR;
Index: smarty/libs/core/core.write_cache_paths_file.php
diff -u smarty/libs/core/core.write_cache_paths_file.php:1.6 smarty/libs/core/core.write_cache_paths_file.php:1.7
--- smarty/libs/core/core.write_cache_paths_file.php:1.6	Tue Jun 24 11:45:02 2003
+++ smarty/libs/core/core.write_cache_paths_file.php	Wed Jun 25 18:29:03 2003
@@ -14,6 +14,9 @@
  
 function smarty_core_write_cache_paths_file($params, &$smarty)
 {
+	if (!isset($smarty->_cache_paths_file)) {
+		return false;
+	}
 	$_compiled_content = function_exists('var_export') ? var_export($smarty->_cache_paths, true) : "unserialize('" . serialize($smarty->_cache_paths) . "')";
 	$_compiled_content = '<?php $this->_cache_paths = ' . $_compiled_content . '; ?>';
 	$_params = array('compile_path' => $smarty->_cache_paths_file, 'compiled_content' => $_compiled_content, 'resource_timestamp' => time());



-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.