Commit Graph

15 Commits

Author SHA1 Message Date
boots
f30371dff9 Better recognize Windows filesystems to reduce warnings 2007-01-10 16:28:38 +00:00
boots
6f0d444d50 change file writing semantics in smarty_core_write_file()
This avoids unlink() unless rename() fails or a Windows system is detected

see: http://www.phpinsider.com/smarty-forum/viewtopic.php?t=6956

Thanks to c960657 from the forums.
2006-11-08 19:00:46 +00:00
messju
6665e58ecf forgot to update the strings in smarty_core_write_compiled_include()
when chaning the generated code in
Smarty_Compiler::_push_cacheable_state() and
Smarty_Compiler::_pop_cacheable_state()
2005-11-29 15:20:27 +00:00
messju
3cb166ba4a fixed handling of multiple identical calls to {insert}.
the function was called multiple times, but all inserts where replaced
by the results of the first call to the insert function.
2005-11-26 16:59:02 +00:00
boots
fdb25e363f replace {} string access with equivalent substr() to avoid E_STRICT warnings in PHP 5.1 2005-11-23 20:36:05 +00:00
mohrt
c7d1cc8727 fix notice in debug security check 2005-08-17 15:27:40 +00:00
mohrt
a253dd2192 allow debug.tpl to work from arbitrary dir 2005-08-04 20:21:39 +00:00
mohrt
f96326d4a9 update changes 2005-08-03 12:44:39 +00:00
messju
edab07b69d fixed problems with cached templates containing nocache sections when
they where displayed multiple times during a single request
2005-07-08 18:11:22 +00:00
messju
c9b92b8b56 removed unnecessary require('core.rmdir.php') 2005-06-23 17:30:57 +00:00
messju
c6827dee8a fixed serialization of values containing newlines (like _cache_attrs)
in core_write_cache_file()

bumped version to 2.6.6-dev-3 to indicate that the fileformat of cache
has changed
2005-02-01 10:19:08 +00:00
messju
e57e545e58 added a more robust implementation when removing of the trailing
'<?php '-token after toke_get_all() . this is also a workaround for
http://bugs.php.net/bug.php?id=29761
2005-01-27 08:51:21 +00:00
messju
d0929cf915 fixed nocache-handling with nested includes. there was a logical error
in the replacement of internal nocache-tags to dynamic content that
lead to false results with deeply nested includes or with
nocache-blocks inside nocache-blocks.

many thanks to Lars Jankowfsky for providing big help on reproducing
and tracking down this bug!
2004-10-02 18:03:25 +00:00
messju
e9c72aedce - better header for compiled includes (more in line with compiled
templates)

- reuse cache_serials if a file is compiled more than once in one
  process (force_compile)

- don't print nocache-delimiters wenn already inside
process_cached_inserts()
2004-10-01 15:26:44 +00:00
boots
a0d021ef60 Moved /libs/core to /libs/internals and created new constant, SMARTY_CORE_DIR which defaults to SMARTY_DIR/internals. This should help CVS and rsynch users butupgrades will require changes and this may affect 3rd party plugins that use the /core dir. 2004-09-16 23:07:32 +00:00