cvs: smarty / NEWS /libs Smarty.class.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1085585201@cvsserver> |
messju Wed May 26 11:26:41 2004 EDT
Modified files:
/smarty NEWS
/smarty/libs Smarty.class.php
Log:
enhanced auto-generated filenames for templates_c and cache
incremented Smarty::_version because the tempfiles' structure changed
a little
http://cvs.php.net/diff.php/smarty/NEWS?r1=1.452&r2=1.453&ty=u
Index: smarty/NEWS
diff -u smarty/NEWS:1.452 smarty/NEWS:1.453
--- smarty/NEWS:1.452 Wed May 12 15:40:36 2004
+++ smarty/NEWS Wed May 26 11:26:40 2004
@@ -1,3 +1,4 @@
+ - enhanced auto-generated filenames for templates_c and cache (messju)
- add 'nonstd' to escape modifier for escaping non-std chars,
such as ms doc quote (Monte)
- adjusted textformat to not output wrap chars after last para
http://cvs.php.net/diff.php/smarty/libs/Smarty.class.php?r1=1.488&r2=1.489&ty=u
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.488 smarty/libs/Smarty.class.php:1.489
--- smarty/libs/Smarty.class.php:1.488 Tue May 4 12:44:47 2004
+++ smarty/libs/Smarty.class.php Wed May 26 11:26:41 2004
@@ -30,7 +30,7 @@
* @version 2.6.3-dev
*/
-/* $Id: Smarty.class.php,v 1.488 2004/05/04 16:44:47 messju Exp $ */
+/* $Id: Smarty.class.php,v 1.489 2004/05/26 15:26:41 messju Exp $ */
/**
* DIR_SEP isn't used anymore, but third party apps might
@@ -459,7 +459,7 @@
*
* @var string
*/
- var $_version = '2.6.3-dev';
+ var $_version = '2.6.3-dev-2';
/**
* current template inclusion depth
@@ -1747,11 +1747,12 @@
if(isset($auto_source)) {
// make source name safe for filename
$_filename = urlencode(basename($auto_source));
- $_crc32 = crc32($auto_source) . $_compile_dir_sep;
+ $_crc32 = sprintf("%08X", crc32($auto_source));
// prepend %% to avoid name conflicts with
// with $params['auto_id'] names
- $_crc32 = '%%' . substr($_crc32,0,3) . $_compile_dir_sep . '%%' . $_crc32;
- $_return .= $_crc32 . $_filename;
+ $_crc32 = substr($_crc32, 0, 2) . $_compile_dir_sep .
+ substr($_crc32, 0, 3) . $_compile_dir_sep . $_crc32;
+ $_return .= '%%' . $_crc32 . '%%' . $_filename;
}
return $_return;
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php