Commit Graph

222 Commits

Author SHA1 Message Date
Progi1984
c016895166 PHP8.2 compatibility (#775)
* PHP8.2 compatibility

* PHP8.2 compatibility : Fixed unit tests

* PHP8.2 compatibility : Replace ENT_COMPAT by ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401

* PHP8.2 compatibility : Remove deprecated utf8_decode

* PHP8.2 compatibility : Remove HTML-ENTITIES parameter

* Removed some unused code for clarity, updated the changelog.

* More concise escape implementation and unit test to cover both modifierplugin and modifiercompiler.

* Fix htmlall unescape of quotes without mbstring too

Co-authored-by: Simon Wisselink <s.wisselink@iwink.nl>
2022-11-22 21:22:57 +01:00
Storyxx
db80246b58 fix compilation for caching templates (#801) 2022-09-18 17:15:56 +02:00
uwetews
4f7cd8f1b3 - reformating for PSR-2 coding standards https://github.com/smarty-php/smarty/pull/483 2018-08-31 16:45:09 +02:00
uwetews
799b5cb342 - fix PSR-2 coding standards and PHPDoc blocks https://github.com/smarty-php/smarty/pull/452
https://github.com/smarty-php/smarty/pull/475
    https://github.com/smarty-php/smarty/pull/473
  - bugfix PHP5.2 compatibility https://github.com/smarty-php/smarty/pull/472
2018-08-19 02:35:46 +02:00
Sławomir Kaleta
2404095783 Update PSR-2 2018-06-12 09:58:15 +02:00
Uwe Tews
336c07c23f - bugfix plugins may not be loaded if {function} or {block} tags are executed in nocache mode
https://github.com/smarty-php/smarty/issues/371
2018-03-28 07:15:29 +02:00
Uwe Tews
96fd914cc1 bugfix rework of newline spacing between tag code and template text.
now again identical with Smarty2 (forum topic 26878)
2017-11-20 04:07:51 +01:00
Uwe Tews
3fc8abeb98 code cleanup and optimizations 3.1.32-dev-34 2017-11-06 01:02:56 +01:00
Uwe Tews
dd9c076dfa - correction of PHPDoc blocks
- minor code cleanup
2017-10-26 10:25:41 +02:00
uwetews
27928ece9c - move template object cache into static variables 2016-11-23 17:12:38 +01:00
uwetews
04a2327c75 - change version checking 2016-11-19 18:13:00 +01:00
uwetews
2d2be8f57f - bugfix template function definitions array has not been cached between Smarty::fetch() and Smarty::display() calls
https://github.com/smarty-php/smarty/issues/301
2016-10-27 05:42:17 +02:00
uwetews
3c07a28434 - optimization move runtime extension for template functions into Smarty objects 2016-10-08 06:07:14 +02:00
uwetews
a9e7e8881e - optimization clear compiled and cached folder completely on detected version change 2016-09-19 14:59:49 +02:00
uwetews
44189a7531 - performance Smarty::configLoad() did load unneeded template source object 2016-09-11 05:41:16 +02:00
uwetews
0a8e47ecb2 - improvement move often used code snippets into methods 2016-09-11 04:35:52 +02:00
uwetews
db01627c1c - optimization remove unneeded call to update acopes when {assign} scope and template scope was local (default) 2016-08-14 03:32:07 +02:00
uwetews
001f16aa0a update error message 2016-08-07 16:08:10 +02:00
uwetews
ffa270c395 04.08.2015
- improvement move template function source parameter into extension
2016-08-04 23:10:26 +02:00
uwetews
335f199cbc - optimization unneeded loading of compiled resource 2016-07-26 04:00:15 +02:00
uwetews
afb971f84b - bugfix multiple {include} with relative filepath within {block}{/block} could fail https://github.com/smarty-php/smarty/issues/246 (reverted from commit 09d8eab89f) (reverted from commit 3fdd9e4b89) 2016-07-19 00:25:49 +02:00
uwetews
e865374fc2 - bugfix multiple {include} with relative filepath within {block}{/block} could fail https://github.com/smarty-php/smarty/issues/246 (reverted from commit 09d8eab89f) (reverted from commit 3fdd9e4b89) 2016-07-19 00:19:22 +02:00
uwetews
3fdd9e4b89 - bugfix multiple {include} with relative filepath within {block}{/block} could fail https://github.com/smarty-php/smarty/issues/246 (reverted from commit 09d8eab89f) 2016-07-19 00:14:51 +02:00
uwetews
09d8eab89f - bugfix multiple {include} with relative filepath within {block}{/block} could fail https://github.com/smarty-php/smarty/issues/246 2016-07-18 23:50:37 +02:00
uwetews
5fd21b7361 - bugfix multiple {include} with relative filepath within {block}{/block} could fail https://github.com/smarty-php/smarty/issues/246 2016-07-18 23:43:58 +02:00
uwetews
cbea88b3a7 - bugfix template function data should be merged when loading subtemplate https://github.com/smarty-php/smarty/issues/240 2016-07-13 01:42:54 +02:00
uwetews
38b13661fe - bugfix enable debugging could fail when template objects did already exists https://github.com/smarty-php/smarty/issues/237 2016-07-13 01:07:53 +02:00
uwetews
6ef0d0eaa0 - optimization and cleanup of resource code 2016-05-15 11:13:31 +02:00
uwetews
1fbf16afed - optimization of inheritance processing 2016-05-10 03:54:56 +02:00
uwetews
f1b3662b28 - bugfix same relative filepath at {include} called from template in different folders could display wrong sub-template 2016-05-01 23:53:38 +02:00
uwetews
13a2127b50 - bugfix nested {include} with relative file path could fail when called in {block} ... {/block} https://github.com/smarty-php/smarty/issues/218 2016-04-24 11:04:36 +02:00
uwetews
6d4a4de0d5 - bugfix template inheritance status must be saved when calling sub-templates https://github.com/smarty-php/smarty/issues/215 2016-04-13 03:36:16 +02:00
uwetews
af71fda639 - optimization of capture and security handling 2016-03-11 02:55:55 +01:00
uwetews
4815464b9c - optimization of resource processing 2016-03-10 22:22:46 +01:00
uwetews
abf5be58ad - improvement rework of 'scope' attribute handling see see NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/194
https://github.com/smarty-php/smarty/issues/186 https://github.com/smarty-php/smarty/issues/179
2016-03-09 01:01:32 +01:00
uwetews
825aa26079 - bugfix template objects must be cached on $smarty->fetch('foo.tpl) calls incase the template is fetched
multiple times (forum topic 25909)
2016-03-01 00:54:33 +01:00
uwetews
3e463c1be0 - revert output buffer flushing on display, echo content again because possible problems when PHP files had
characters (newline} after ?> at file end https://github.com/smarty-php/smarty/issues/187
2016-02-19 16:10:17 +01:00
uwetews
4b1ba73eea - optimization of sub-template processing 2016-02-14 09:17:55 +01:00
uwetews
0f7f0d87b6 - new tag {make_nocache} read NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/110 2016-02-14 02:54:38 +01:00
uwetews
2f62b99173 - update/bugfix scope attribute handling reworked. Read the newfeatures.txt file 2016-02-09 23:27:07 +01:00
uwetews
b04486a091 - reformat all code for unique style 2016-02-09 01:27:15 +01:00
uwetews
59343127f7 - update scope handling 2016-01-02 02:47:32 +01:00
uwetews
c60cdb3e64 - optimization of {assign}, {if} and {while} compiled code 2015-12-31 02:20:47 +01:00
uwetews
c8c82a292a - PHPdoc updates 2015-12-27 08:12:46 +01:00
uwetews
b0691dd056 - update external methods 2015-12-27 07:18:35 +01:00
uwetews
db2cace210 - optimization move subtemplate processing back into template object 2015-12-23 03:08:23 +01:00
uwetews
ad635471cb - optimization move internal method decodeProperties back into template object 2015-12-23 00:44:51 +01:00
uwetews
e8078f55ae - bugfix Debug Console could display incorrect data when using subtemplates 2015-12-13 14:15:54 +01:00
uwetews
7e521a92d9 - bugfix $smarty->debugging_ctrl = 'URL' did not work (forum topic 25811) 2015-12-13 10:16:10 +01:00
uwetews
55f38125a4 - improve template scope handling 2015-10-29 22:17:35 +01:00