cvs: smarty / NEWS /libs Smarty.class.php /libs/core core.write_compiled_include.php core.write_compiled_resource.php core.write_file.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1089644730@cvsserver> |
messju Mon Jul 12 11:05:30 2004 EDT
Modified files:
/smarty NEWS
/smarty/libs Smarty.class.php
/smarty/libs/core core.write_compiled_include.php
core.write_compiled_resource.php
core.write_file.php
Log:
removed touch() call. changing the timestamp of the compiled-template
to the source template's may be irritating for certain
source-code-caches. now a newly compiled template gets the current
time as timestamp.
http://cvs.php.net/diff.php/smarty/NEWS?r1=1.461&r2=1.462&ty=u
Index: smarty/NEWS
diff -u smarty/NEWS:1.461 smarty/NEWS:1.462
--- smarty/NEWS:1.461 Fri Jul 2 10:14:29 2004
+++ smarty/NEWS Mon Jul 12 11:05:30 2004
@@ -1,3 +1,5 @@
+ - remove touch() call that made the compiled-template's timestamp the
+ same as the source-template's one. (messju)
- add assign attribute to html_checkboxes and html_radios
(pcg, Monte)
- remove non-xhtml conformant tag from mailto function
http://cvs.php.net/diff.php/smarty/libs/Smarty.class.php?r1=1.492&r2=1.493&ty=u
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.492 smarty/libs/Smarty.class.php:1.493
--- smarty/libs/Smarty.class.php:1.492 Thu Jul 1 11:48:40 2004
+++ smarty/libs/Smarty.class.php Mon Jul 12 11:05:30 2004
@@ -30,7 +30,7 @@
* @version 2.6.4-dev
*/
-/* $Id: Smarty.class.php,v 1.492 2004/07/01 15:48:40 messju Exp $ */
+/* $Id: Smarty.class.php,v 1.493 2004/07/12 15:05:30 messju Exp $ */
/**
* DIR_SEP isn't used anymore, but third party apps might
@@ -1408,7 +1408,6 @@
}
$_source_content = $_params['source_content'];
- $_resource_timestamp = $_params['resource_timestamp'];
$_cache_include = substr($compile_path, 0, -4).'.inc';
if ($this->_compile_source($resource_name, $_source_content, $_compiled_content, $_cache_include)) {
@@ -1418,7 +1417,7 @@
smarty_core_write_compiled_include(array_merge($this->_cache_include_info, array('compiled_content'=>$_compiled_content)), $this);
}
- $_params = array('compile_path'=>$compile_path, 'compiled_content' => $_compiled_content, 'resource_timestamp' => $_resource_timestamp);
+ $_params = array('compile_path'=>$compile_path, 'compiled_content' => $_compiled_content);
require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.write_compiled_resource.php');
smarty_core_write_compiled_resource($_params, $this);
http://cvs.php.net/diff.php/smarty/libs/core/core.write_compiled_include.php?r1=1.9&r2=1.10&ty=u
Index: smarty/libs/core/core.write_compiled_include.php
diff -u smarty/libs/core/core.write_compiled_include.php:1.9 smarty/libs/core/core.write_compiled_include.php:1.10
--- smarty/libs/core/core.write_compiled_include.php:1.9 Thu Apr 15 11:06:09 2004
+++ smarty/libs/core/core.write_compiled_include.php Mon Jul 12 11:05:30 2004
@@ -10,7 +10,6 @@
*
* @param string $compile_path
* @param string $template_compiled
- * @param integer $template_timestamp
* @return boolean
*/
http://cvs.php.net/diff.php/smarty/libs/core/core.write_compiled_resource.php?r1=1.5&r2=1.6&ty=u
Index: smarty/libs/core/core.write_compiled_resource.php
diff -u smarty/libs/core/core.write_compiled_resource.php:1.5 smarty/libs/core/core.write_compiled_resource.php:1.6
--- smarty/libs/core/core.write_compiled_resource.php:1.5 Sun Nov 23 03:37:43 2003
+++ smarty/libs/core/core.write_compiled_resource.php Mon Jul 12 11:05:30 2004
@@ -10,7 +10,6 @@
*
* @param string $compile_path
* @param string $compiled_content
- * @param integer $resource_timestamp
* @return true
*/
function smarty_core_write_compiled_resource($params, &$smarty)
@@ -25,7 +24,7 @@
return false;
}
- $_params = array('filename' => $params['compile_path'], 'timestamp'=>$params['resource_timestamp'], 'contents' => $params['compiled_content'], 'create_dirs' => true);
+ $_params = array('filename' => $params['compile_path'], 'contents' => $params['compiled_content'], 'create_dirs' => true);
require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.write_file.php');
smarty_core_write_file($_params, $smarty);
return true;
http://cvs.php.net/diff.php/smarty/libs/core/core.write_file.php?r1=1.11&r2=1.12&ty=u
Index: smarty/libs/core/core.write_file.php
diff -u smarty/libs/core/core.write_file.php:1.11 smarty/libs/core/core.write_file.php:1.12
--- smarty/libs/core/core.write_file.php:1.11 Thu May 6 08:37:46 2004
+++ smarty/libs/core/core.write_file.php Mon Jul 12 11:05:30 2004
@@ -33,11 +33,6 @@
}
fwrite($fd, $params['contents']);
-
- // Set the file's mtime
- if (isset($params['timestamp'])) {
- touch($_tmp_file, $params['timestamp']);
- }
fclose($fd);
// Delete the file if it allready exists (this is needed on Win,
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php