Commit Graph

4278 Commits

Author SHA1 Message Date
uwetews
fdd20dd4f1 - compile {block} tag code and its processing into classes 2015-12-25 09:10:39 +01:00
uwetews
2ebacc3b54 - bugfix post filter did fail on template inheritance https://github.com/smarty-php/smarty/issues/144 2015-12-24 05:52:41 +01:00
uwetews
297f47a15a - new feature Compiler does now observe the template_dir setting and will create separate compiled files if required 2015-12-24 02:29:21 +01:00
uwetews
9d0865aaf8 - new feature Caching does now observe the template_dir setting and will create separate cache files if required 2015-12-24 02:26:31 +01:00
uwetews
5c377637e1 - new feature Caching does now observe the template_dir setting and will create separate cache files if required 2015-12-23 04:35:48 +01:00
uwetews
db2cace210 - optimization move subtemplate processing back into template object 2015-12-23 03:08:23 +01:00
uwetews
8a0562fb58 lost code on last commit 2015-12-23 00:57:52 +01:00
uwetews
ad635471cb - optimization move internal method decodeProperties back into template object 2015-12-23 00:44:51 +01:00
uwetews
ef3da3cc0b - code optimizations 2015-12-22 23:49:25 +01:00
uwetews
136e94ae74 - change $xxx_dir properties from private to protected in case Smarty class gets extended.
Properties like $template_dir must never be accessed directly or overloaded by a user class. Use getter/setter methods like setTemplateDir()
2015-12-22 01:21:35 +01:00
uwetews
a8f8efd4b4 - bugfix {strip} must remove all blanks between html tags https://github.com/smarty-php/smarty/issues/136 2015-12-21 23:35:52 +01:00
uwetews
fd09164be5 - optimization of filepath normalization 2015-12-21 22:50:55 +01:00
uwetews
76bb166eda - bugfix a filepath starting with '/' or '\' on windows should normalize to the root dir
of current working drive https://github.com/smarty-php/smarty/issues/134 (reverted from commit e29834387f) (reverted from commit 5a418efe57)
2015-12-21 17:19:39 +01:00
uwetews
5a418efe57 - bugfix a filepath starting with '/' or '\' on windows should normalize to the root dir
of current working drive https://github.com/smarty-php/smarty/issues/134 (reverted from commit e29834387f)
2015-12-21 16:36:33 +01:00
uwetews
e29834387f - bugfix a filepath starting with '/' or '\' on windows should normalize to the root dir
of current working drive https://github.com/smarty-php/smarty/issues/134
2015-12-21 16:34:46 +01:00
uwetews
b22686023e Merge pull request #141 from m1nd53t/master
set correct path to template in CompileAll
2015-12-21 15:05:53 +01:00
Kars Frijters
d8109dda75 set correct path to template in CompileAll
When the template is in a subdirectory of the sourcedir, the the template could not be loaded
2015-12-21 14:27:26 +01:00
uwetews
fa482f09f5 Fix typo in version 2015-12-21 03:08:35 +01:00
uwetews
ee0ea0afbf Prepare 3.1.20-dev 2015-12-21 03:01:41 +01:00
uwetews
35480f10e7 Release 3.1.29 v3.1.29 2015-12-21 02:57:06 +01:00
uwetews
6867515183 v3.1.28-p1 patch 2015-12-21 02:49:46 +01:00
uwetews
efaa61cfb6 - optimization improve speed of filetime checks on extends and extendsall resource 2015-12-21 02:18:27 +01:00
uwetews
3548de5fa1 - bugfix the source uid of the extendsall resource must contain $template_dir settings https://github.com/smarty-php/smarty/issues/123 2015-12-20 17:51:16 +01:00
uwetews
78243be722 - bugfix add addition check for OS type on normalization of file path https://github.com/smarty-php/smarty/issues/134 2015-12-20 16:21:32 +01:00
uwetews
6483164d18 - update compilation of Smarty special variables 2015-12-20 15:13:34 +01:00
uwetews
e655856871 - bugfix failure when the default resource type was set to 'extendsall' https://github.com/smarty-php/smarty/issues/123 2015-12-20 05:27:43 +01:00
uwetews
dc9872e0e2 - bugfix broken PHP 5.2 compatibility https://github.com/smarty-php/smarty/issues/139 2015-12-19 21:55:32 +01:00
uwetews
9cdf68807f - improvement make sure that compiled and cache templates never can contain a trailing '?>? 2015-12-19 21:37:46 +01:00
uwetews
d11956fc78 - remove no longer used code 2015-12-19 21:35:24 +01:00
uwetews
116c0caa5b update travis 2015-12-19 20:19:32 +01:00
uwetews
b75f638d20 update travis 2015-12-19 20:16:18 +01:00
uwetews
5558f4face update travis 2015-12-19 20:13:46 +01:00
uwetews
224a1c4874 - bugfix broken PHP 5.2 compatibility 2015-12-19 20:10:45 +01:00
uwetews
e32720ef4e - bugfix using $smarty.capture.foo in expressions could fail https://github.com/smarty-php/smarty/pull/138 2015-12-19 19:18:31 +01:00
uwetews
818715351a typo 2015-12-18 05:52:04 +01:00
uwetews
44eea98260 - bugfix regression when mdifier parameter was follow by math https://github.com/smarty-php/smarty/issues/132 2015-12-18 04:43:55 +01:00
uwetews
05c069d889 - bugfix using {block append/prepend} on same block in multiple levels of inheritance templates could fail (forum topic 25827) 2015-12-18 00:34:58 +01:00
uwetews
9a8bcb93b1 - bugfix text content consisting of just a single '0' like in {if true}0{/if} was suppressed (forum topic 25834) 2015-12-17 21:51:19 +01:00
uwetews
919861014a - bugfix using {block append/prepend} on same block in multiple levels of inheritance templates could fail (forum topic 25827) 2015-12-17 21:32:36 +01:00
uwetews
fb80bd53a5 - bugfix {$smarty.capture.nameFail} did lowercase capture name https://github.com/smarty-php/smarty/issues/135 2015-12-17 20:31:30 +01:00
uwetews
b7118b6beb - optimize direct access $smarty->template_dir = 'foo'; should call Smarty::setTemplateDir() https://github.com/smarty-php/smarty/issues/121 2015-12-16 22:32:07 +01:00
uwetews
c4a5aca865 - bugfix direct access $smarty->template_dir = 'foo'; should call Smarty::setTemplateDir() https://github.com/smarty-php/smarty/issues/121 2015-12-16 04:54:34 +01:00
uwetews
fa3aed33ee - bugfix {foreach} did fail if from atrribute is a Generator class https://github.com/smarty-php/smarty/issues/128 2015-12-16 03:25:33 +01:00
uwetews
e1eefdca75 Merge pull request #127 from logbon72/master
Restored Smarty_Internal_Data::getVariable()
2015-12-16 00:58:13 +01:00
uwetews
b842934abd Merge pull request #129 from eaglewu/patch-1
Compatible with PHP7
2015-12-16 00:57:54 +01:00
Di Wu
1f7a82e2be Compatible with PHP7
Explicitly defining the evaluation order with the curly braces.

In PHP5
``
$person->$property['first'] is evaluated as $person->{$property['first']}
``

But in PHP7
``
$person->$property['first'] is evaluated as {$person->$property}['first']
``
2015-12-15 17:37:53 +08:00
Joseph Orilogbon
048b648bff - Restored Smarty_Internal_Data::getVariable(), but added deprecation message. 2015-12-15 08:54:21 +01:00
uwetews
017120c1ef - bugfix a call to clearAllCache() and other should clear all internal template object caches (forum topic 25828) 2015-12-15 03:37:13 +01:00
uwetews
80f872ac06 Merge pull request #126 from glensc/patch-1
Update NEW_FEATURES.txt
2015-12-15 01:52:53 +01:00
uwetews
862ce9db08 - bugfix {$smarty.cookies.foo} did return the $_COOKIE array not the 'foo' value https://github.com/smarty-php/smarty/issues/122 2015-12-15 01:34:18 +01:00