Simon Wisselink
a8d77c8666
Merge branch 'release/4.5.6' into support/4
2025-08-26 10:37:46 +02:00
Simon Wisselink
7721e5d786
version bump
2025-08-26 10:37:44 +02:00
Simon Wisselink
3e6a478e93
Fixed escaping of array/object keys in debug_print_var
2025-08-26 10:37:17 +02:00
Shad
c438c79d7d
add count and debug_print_var modifier doc ( #1116 )
2025-03-17 09:18:09 +01:00
Shad
e1ef353ccf
add missing closing tr tag ( #1117 )
...
Add missing end tag for 'assigned template variables' section.
backport of d6153d4
2025-03-17 09:15:32 +01:00
Simon Wisselink
5cb412d040
Bugfix/1100 modifier called like a function compiled to modifier name not callback ( #1101 )
...
* Fixed that modifiers called like function would be compiled to modifier name instead of calling the registered callback
2025-02-13 23:21:21 +01:00
Simon Wisselink
272a407e9d
change SMARTY_VERSION to $smarty.version.
...
Fixes #1073
2024-12-28 17:39:36 +01:00
Simon Wisselink
c4851c12e3
Merge branch 'release/4.5.5' into support/4
2024-11-21 23:06:22 +01:00
Simon Wisselink
48f9d291de
version bump
2024-11-21 23:06:19 +01:00
Simon Wisselink
4fbff32417
changelog
2024-11-21 23:06:02 +01:00
Jonathan Lelievre
bf87aee3f0
Add PHP 8.4 support to Smarty ( #1084 )
...
* Add nullable types
* Removing deprecated E_STRICT constant from test suite.
* Added PHP 8.4 RC1 as test image
* PHP version bump in the README.md.
* Added PHP 8.4 to CI
* Add running tests for PHP 8.4
2024-11-21 23:04:22 +01:00
Simon Wisselink
ffc4415a4f
Add unit tests for short hand template function definition and shorthand template function calls.
2024-10-06 22:03:23 +02:00
Simon Wisselink
c11676e85a
Merge branch 'release/4.5.4' into support/4
2024-08-14 22:04:35 +02:00
Simon Wisselink
44a08bea7c
version bump
2024-08-14 22:04:33 +02:00
Simon Wisselink
2adb8801a5
Fixed that using count() would trigger a deprecation notice. ( #1054 )
2024-08-14 10:58:02 +02:00
Simon Wisselink
9fc96a13db
Merge branch 'release/4.5.3' into support/4
2024-05-28 23:46:01 +02:00
Simon Wisselink
09e211cbfd
version bump
2024-05-28 23:45:58 +02:00
Simon Wisselink
76881c8d33
Merge pull request from GHSA-4rmg-292m-wg3w
...
* Fixed a code injection vulnerability in extends-tag
* update tests for smarty v4
2024-05-28 22:44:30 +02:00
Simon Wisselink
4549822cdd
fixed sample output of section in the docs and added this example as a unit test
2024-04-19 11:10:01 +02:00
Simon Wisselink
55799a9b65
Add test for getTemplateVars returning array of values
2024-04-13 10:34:51 +02:00
Simon Wisselink
6592bd4ad3
fixed changelog
2024-04-07 22:48:33 +02:00
Simon Wisselink
7320402766
Merge branch 'release/4.5.2' into support/4
2024-04-06 00:34:05 +02:00
Simon Wisselink
1115eb6f65
version bump
2024-04-06 00:33:17 +02:00
Simon Wisselink
9656f553d1
Throw deprecation notice about unregistered functions without changing the compilation flow ( #985 )
...
Fixes #964
2024-04-05 17:41:54 +02:00
Simon Wisselink
42b869e3a0
Merge branch 'release/4.5.1' into support/4
2024-03-18 15:19:07 +01:00
Simon Wisselink
4cb00900d7
version bump
2024-03-18 15:19:05 +01:00
Simon Wisselink
204f3bc74e
fix branch name in release script
2024-03-18 15:16:08 +01:00
Simon Wisselink
409802db04
Merge branch 'release/4.5.0' into support/4
2024-03-18 15:14:37 +01:00
Simon Wisselink
1015e5472b
version bump
2024-03-18 15:12:18 +01:00
Simon Wisselink
c7a271323b
Using unsupported PHP functions and unregistered static class methods in modifiers and expressions now triggers a deprecation notice
...
* Using unsupported PHP functions and unregistered static class methods in modifiers and expressions now triggers a deprecation notice because we will drop support for this in the next major release
2024-03-18 14:44:29 +01:00
Simon Wisselink
e2cb9873ff
New unit test for function scope
2024-03-15 16:18:19 +01:00
Simon Wisselink
f4152e9b81
auto-delete changelog files
2024-02-26 14:58:37 +01:00
Simon Wisselink
5d0dd09632
changelog update
2024-02-26 14:58:17 +01:00
Simon Wisselink
9d559827fd
Merge branch 'release/4.4.1' into support/4.3
2024-02-26 14:56:21 +01:00
Simon Wisselink
5e2a9fbb26
version bump
2024-02-26 14:56:21 +01:00
Simon Wisselink
9614a59199
changelog
2024-02-26 14:56:15 +01:00
Simon Wisselink
ee58a2173b
Updated release tooling
2024-02-26 14:55:24 +01:00
Simon Wisselink
29dd621b53
Add some guidance on upgrading from v3 to v4
2024-02-26 14:46:35 +01:00
Simon Wisselink
de1bc77f7f
Prevent deprecation notices for implode, json_encode and substr modifiers
...
* Prevent deprecation notices for implode, json_encode and substr modifiers.
* unit tests
2024-02-26 14:33:47 +01:00
Simon Wisselink
326b2da8da
Fix incorrect compilation of expressions when escape_html=true ( #932 )
...
Fixes #930
2024-02-05 14:37:52 +01:00
Simon Wisselink
e0cbbdf6ea
Update php version number in docs
2024-01-23 11:47:54 +01:00
Simon Wisselink
b4bbc17f1c
Add PHP8.3 support for Smarty 4.3. ( #927 )
...
See #925
2024-01-23 11:45:13 +01:00
Simon Wisselink
6e067ed327
Add unit tests to clarify current behavior
2023-09-21 23:50:10 +02:00
Simon Wisselink
3931d8f54b
Merge branch 'release/4.3.4' into support/4.3
2023-09-14 12:59:08 +02:00
Simon Wisselink
d8c1dfe56e
version bump
2023-09-14 12:59:07 +02:00
Simon Wisselink
6887e55ded
Merge branch 'release/4.3.3' into support/4.3
2023-09-14 11:00:40 +02:00
Simon Wisselink
642fd69fea
version bump
2023-09-14 11:00:38 +02:00
Simon Wisselink
17a7d6fb5b
Fix release-script to user support-branch
2023-09-14 11:00:08 +02:00
Simon Wisselink
b96a5c3953
version bump
2023-09-14 10:57:44 +02:00
Simon Wisselink
2ff66e0fcc
Fix use of negative numbers in math equations. ( #904 )
...
Fixes #895
2023-09-14 10:38:53 +02:00
Simon Wisselink
d6c4274822
Fix phpdoc.
...
Fixes #897
2023-09-13 22:10:36 +02:00
Simon Wisselink
a3cbdc46fb
Fix strip_tags modifier for falsy input. ( #893 )
...
Fixes #890
2023-08-04 22:40:19 +02:00
Simon Wisselink
1d9cda2be3
Merge branch 'release/4.3.2'
2023-07-19 12:27:36 +02:00
Simon Wisselink
edfd4c91da
version bump
2023-07-19 12:27:34 +02:00
Simon Wisselink
4434e128c6
muteUndefinedOrNullWarnings() now also mutes PHP8 warnings for undefined properties ( #891 )
2023-07-19 12:27:17 +02:00
Jon
19df91b692
Remove md5 modifier from debug.tpl ( #871 )
...
* Remove `md5` modifier from debug.tpl
Replaced with a regular function call.
See https://github.com/smarty-php/smarty/issues/813
* Move `md5()` in debug.tpl to PHP
---------
Co-authored-by: jonathan <jonathan@devrygreenhouses.com >
2023-04-30 23:25:39 +02:00
Simon Wisselink
e28cb0915b
Merge branch 'release/4.3.1'
2023-03-28 21:47:03 +02:00
Simon Wisselink
fe7817c301
version bump
2023-03-28 21:47:01 +02:00
Simon Wisselink
685662466f
Merge branch 'js_escape_security_fix'
2023-03-28 21:46:46 +02:00
Simon Wisselink
71d113550c
Add changelog
2023-03-28 21:43:36 +02:00
takaram
5512d64521
Upgrade actions/checkout and actions/cache ( #870 )
2023-03-25 15:38:18 +01:00
Simon Wisselink
2038890f19
Changelog
2023-03-24 12:19:40 +01:00
Simon Wisselink
e75165565e
Implement fix and tests
2023-03-24 12:19:34 +01:00
Simon Wisselink
3d2a8dc5fd
Update SECURITY.md with correct version info.
2023-02-23 22:44:34 +01:00
Simon Wisselink
2764816407
Add missing dirs
2023-02-23 22:30:15 +01:00
Simon Wisselink
801d186ea4
CompileCheck test and extra note on how it works in docs
2023-02-23 22:17:06 +01:00
Simon Wisselink
09d26579ce
Some additional unit tests
2023-02-23 22:06:37 +01:00
Simon Wisselink
badcae6e0c
Finished improving designers docs
2023-02-06 14:42:31 +01:00
Simon Wisselink
694ff1b733
Improved another chunk of the designers docs
2023-02-06 10:40:00 +01:00
Simon Wisselink
1e0d25638e
WIP improving the docs
2023-02-05 23:14:10 +01:00
Simon Wisselink
51ed0d6791
fixes to docs
2023-02-03 22:31:59 +01:00
Simon Wisselink
c94d3ddafa
multiversion mkdocs config
2023-02-03 22:29:08 +01:00
Simon Wisselink
5fdcb3c6fa
Fix error in docs on prepend/append. Fixes #818 .
2023-01-31 11:24:20 +01:00
Adrien Poupa
5988116c81
PHP 8.1 deprecation warnings on null strings in modifiers ( #834 )
2023-01-17 00:24:23 +01:00
Simon Wisselink
73ff8fd3d0
Fix unit tests that broke because now is now in 2023
2023-01-13 22:19:17 +01:00
Simon Wisselink
d900a0ef4a
Added variable scope test for multi-level extends resource
2023-01-13 19:23:12 +01:00
Simon Wisselink
a34ee98e21
Allow dereferencing of non-objects accross all supported PHP versions ( #832 )
...
Fixes #831
2022-11-24 18:44:19 +01:00
Simon Wisselink
4d1cf61bb8
Simplify test running to support all phpunit cmdline options
2022-11-24 18:24:17 +01:00
Simon Wisselink
c0a6b641bf
Treat undefined vars and array access of a null or false variables equivalent across all supported PHP versions ( #830 )
...
* Added test to see what changed exactly
* Treat undefined vars and array access of a null or false variables
equivalent across all supported PHP versions
* Removed 2 tests that produce inconsistent results between PHP7.x versions.
* Fix regex matching for slightly different error message for php7.1
2022-11-24 09:43:51 +01:00
Simon Wisselink
044647bd71
Also mute php7 notices for undefined array indexes when muteUndefinedOrNullWarnings is activated. ( #829 )
...
Fixes #736
2022-11-23 23:26:24 +01:00
Simon Wisselink
c02e9e135e
Merge branch 'release/4.3.0'
2022-11-22 22:47:32 +01:00
Simon Wisselink
67ab8f6879
version bump
2022-11-22 22:47:30 +01:00
Simon Wisselink
773b3b4b7c
Change file permissions for directories and respect umask for written files. ( #828 )
...
Fixes #548
Fixes #819
2022-11-22 22:31:54 +01:00
Hunman
613c5d691c
Make SmartyCompilerException play nicer with error handler libraries ( #782 )
...
* Make SmartyCompilerException play nicer with error handler libraries
Added a new constructor, which accepts a filename and a line number too
(similar to ErrorException, except no severity parameter)
This way error handlers will display the correct file's correct line as
the source of the exception, instead of the template's line in the
core of the parser (php file)
Kept the __toString() method, but removed $source, $desc, and $template
* Revert the breaking changes
2022-11-22 21:58:13 +01:00
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
Andrew Dawes
f81720941c
Fixed several typos and grammar errors ( #821 )
2022-10-22 22:08:38 +02:00
Simon Wisselink
1ff79c6c38
Update changelog
...
Closes #816
2022-09-27 12:24:08 +02:00
Simon Wisselink
254b5cabee
Dropped remaining references to removed PHP-support in Smarty 4 from docs, lexer and security class.
2022-09-27 12:21:01 +02:00
Raimondas Rimkevičius
1b556c7077
Use __DIR__ instead of dirname(__FILE__) ( #817 )
2022-09-27 12:03:34 +02:00
Simon Wisselink
4550fc0339
Using PHP functions as modifiers now triggers a deprecation notice ( #814 )
...
Fixes #813
2022-09-23 00:09:00 +02:00
Scott Newton
4fc39d59a5
Bug fix for underscore in template name ( #581 )
...
* Corrected bug #578 , where underscore characters were being stripped from template names when using a custom resource
* Increased the maximum template name length to 127 characters when using a custom resource
2022-09-22 23:56:18 +02:00
Alec Smecher
0fb29024e7
#155 Adapt Smarty upper/lower functions to be codesafe (e.g. for Turkish locale) ( #586 )
...
* Implemented locale safe strotoupper, strolower and ucfirst functions for translating user string to filenames etc.
Fixes #155
Co-Authored-By: Alexkurd <7689609+Alexkurd@users.noreply.github.com >
2022-09-22 23:32:55 +02:00
Simon Wisselink
612bd3f657
Fixed PHP8.1 deprecation errors in strip_tags ( #803 )
2022-09-22 14:55:20 +02:00
Simon Wisselink
9eea30ec1e
Removed now superfluous phpunit.sh
2022-09-22 14:44:45 +02:00
Simon Wisselink
ea95e8b047
Re-organize all testrunners to use the same script(s). ( #812 )
2022-09-22 14:31:49 +02:00
Simon Wisselink
474138fd7e
Updated changelog
2022-09-22 14:31:01 +02:00
Mathias
b91c04bfcf
Fixed PHP8.1 deprecation errors passing null to parameter in trim ( #807 )
...
Fixed a PHP 8.1 deprecation error: trim(): Passing null to parameter #1 ($string) of type string is deprecated in cacheresource_keyvaluestore.php on line 247 and in cacheresource_keyvaluestore.php on line 431
2022-09-22 14:29:51 +02:00
Simon Wisselink
c53342c9fc
Silence deprecation errors for strtime in PHP8.1 or higher
...
Fixes #672 (#811 )
2022-09-22 14:11:36 +02:00
Simon Wisselink
f8a958cd53
Update changelog
2022-09-21 21:56:39 +02:00
Jonathan Stoll
45345e75ec
Fix Variable Usage ( #808 )
...
Fix Variable Usage in Exception message when unable to load subtemplate
2022-09-21 21:54:41 +02:00
Simon Wisselink
bf7d6b8bd8
Include docs en demo in the releases.
...
Fixes #799
2022-09-20 22:45:16 +02:00
Simon Wisselink
32a11b34ea
Added changelog
2022-09-18 17:18:32 +02:00
Storyxx
db80246b58
fix compilation for caching templates ( #801 )
2022-09-18 17:15:56 +02:00
Hypolite Petovan
d683641f90
Fix wrong indentation in libs/plugins/modifier.capitalize.php ( #802 )
2022-09-18 11:14:59 +02:00
Simon Wisselink
e2e68b3622
clean output buffer for Throwable instead of just Exception ( #797 )
...
Fixes #514
2022-09-14 13:47:36 +02:00
Simon Wisselink
ffa2b81a8e
Merge branch 'release/4.2.1'
2022-09-14 12:59:01 +02:00
Simon Wisselink
c693d81370
version bump
2022-09-14 12:58:59 +02:00
Simon Wisselink
813c83f7a3
Fixed unselected year/month/day not working in html_select_date
...
Fixes #395
2022-09-14 12:44:37 +02:00
Simon Wisselink
55ea25d1f5
Applied appropriate javascript and html escaping in mailto plugin to counter injection attacks
...
Fixes #454
2022-09-14 11:38:18 +02:00
Simon Wisselink
d304d349b4
Fixed PHP8.1 deprecation errors in capitalize modifier
...
Fixes #789
2022-09-13 12:19:44 +02:00
Simon Wisselink
7494818434
prevent double CI workflows in PRs
2022-09-12 16:02:42 +02:00
Simon Wisselink
50d5890eac
Exclude unit test files from git export
2022-09-12 15:52:32 +02:00
Simon Wisselink
6872e78238
Utility script for running unit tests on all PHP versions locally
2022-09-12 15:50:09 +02:00
Simon Wisselink
5479e3362c
Fixed use of rand() without a parameter in math function ( #795 )
...
* Fixed use of `rand()` without a parameter in math function
Fixes #794
2022-09-12 12:13:42 +02:00
Simon Wisselink
f8f97b4e2d
Fixed PHP8.1 deprecation errors in upper modifier #788
2022-09-10 12:34:20 +02:00
Mark Fettig
1bc7c722a3
address PHP 8.1 'explode', 'number_format', and 'replace' deprecations ( #755 )
2022-09-09 22:39:24 +02:00
Simon Wisselink
02968a82b5
Update SECURITY.md
...
Removed comment that still indicated v4 wasn’t released yet.
2022-08-16 22:43:47 +02:00
Simon Wisselink
97aeb14c6f
Merge branch 'release/4.2.0'
2022-08-01 23:57:38 +02:00
Simon Wisselink
ed454551a3
version bump
2022-08-01 23:57:36 +02:00
Simon Wisselink
f4b26a3cbf
Fixed second param of unescape modifier ( #778 )
...
Fixes #777
2022-08-01 23:49:19 +02:00
Simon Wisselink
20a8026ccd
Merge branch 'fix-issue-549-v3' of github.com:AnrDaemon/smarty into AnrDaemon-fix-issue-549-v3 ( #771 )
2022-07-19 22:55:07 +02:00
Simon Wisselink
27910bf2c1
git push origin masterMerge branch 'JonisoftGermany-master'
2022-07-17 00:54:29 +02:00
Simon Wisselink
cb95216671
Changelog
2022-07-17 00:54:20 +02:00
Simon Wisselink
d6ac3297df
Merge branch 'master' of github.com:JonisoftGermany/smarty into JonisoftGermany-master
2022-07-17 00:53:25 +02:00
Simon Wisselink
560475a2f2
Do not use obsolete smarty properties '_dir_perms', '_file_perms', 'plugin_search_order' in our own code. ( #772 )
2022-07-17 00:13:57 +02:00
Gunnar Kreitz
382d66305d
Fix PHP 8.1 htmlspecialchars deprecation ( #766 )
2022-07-14 23:51:26 +02:00
Simon Wisselink
44bac8d58c
add local testrunners for all supported PHP versions using docker. ( #770 )
2022-07-14 23:50:22 +02:00
Simon Wisselink
f8e1ba76f7
Replaced outdated references to SMARTY_RESOURCE_CHAR_SET in docs with Smarty::$_CHARSET.
2022-06-15 22:12:38 +02:00
Simon Wisselink
629504485f
Add CVE to changelog
2022-05-17 14:58:05 +02:00
Simon Wisselink
71036be8be
Merge branch 'release/4.1.1'
2022-05-17 14:56:28 +02:00
Simon Wisselink
78f0cf5f65
version bump
2022-05-17 14:56:26 +02:00
Simon Wisselink
64ad6442ca
Merge branch 'security/blockfunctioninjection'
2022-05-17 14:55:47 +02:00
Simon Wisselink
7eff7d6fb0
Changelog
2022-05-16 13:31:15 +02:00
Simon Wisselink
05f1a7deda
Replace '*/' in user supplied input in C-style comments with '* /'.
2022-05-16 12:34:49 +02:00
Simon Wisselink
3f97b7352e
Changelog
2022-04-26 22:11:59 +02:00
Simon Wisselink
a6711b3833
Merge pull request #727 from liborm85/escape-modifier-fix
...
PHP 8.1: fix deprecation in escape modifier
2022-04-26 22:11:33 +02:00
Simon Wisselink
52056ce65a
Changelog
2022-04-26 22:09:50 +02:00
Simon Wisselink
8b96efad45
Merge pull request #743 from xorti/fix-php81-rtrim-calls
...
Fix PHP 8.1 deprecated warning when calling rtrim
2022-04-26 22:09:10 +02:00
Simon Wisselink
bfa02f3b91
Merge branch 'patch-1'
2022-04-26 22:06:29 +02:00
Simon Wisselink
89dc506638
Add changelog
2022-04-26 22:05:34 +02:00
Stephen Sigwart
e68065bc33
Exclude demo from export and composer
2022-04-01 22:48:14 -04:00
Stephen Sigwart
db2547287c
Exclude docs from export and composer
2022-04-01 22:46:50 -04:00
Jorge Sá Pereira
962f266483
Fix PHP 8.1 deprecated warning when calling rtrim
...
Fixes - Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated
2022-03-10 02:06:00 +00:00
Simon Wisselink
8aeb5d6821
Merge pull request #726 from pH-7/patch-1
...
gitattributes: Ignore `.github` folder for distribution
2022-02-13 22:34:29 +01:00
Libor M
a2e1df1768
PHP 8.1: fix deprecation in escape modifier
2022-02-08 13:30:19 +01:00
♚ PH⑦ de Soria™♛
fe6d333c60
Ignore .github folder for distribution
...
`.github` wasn't added here was it got created. However, we don't want `.github` for the distribution builds. Further info about this: https://www.pixelite.co.nz/article/using-git-attributes-exclude-files-your-release/
2022-02-08 06:32:27 +10:30
Simon Wisselink
50c4604857
Added issue 721 to changelog
2022-02-07 09:43:49 +01:00
Simon Wisselink
e5a6ff42f8
Merge pull request #725 from smarty-php/bugfix/699
...
prevent float to int cast deprecation warning in truncate modifier
2022-02-06 22:25:34 +01:00
Simon Wisselink
3cc56392c6
prevent float to int cast deprecation warning in truncate modifier
...
Fixes #699
2022-02-06 22:20:05 +01:00
Simon Wisselink
17025423e1
Merge pull request #724 from smarty-php/bugfix/706
...
Fix PHP 8.1 deprecation notices in demo/plugins/cacheresource.pdo.php
2022-02-06 22:09:39 +01:00
Simon Wisselink
18d3e564da
Merge branch 'master' into bugfix/706
2022-02-06 22:05:01 +01:00
Simon Wisselink
0d2c38b482
fix PHP 8.1 deprecation notices in demo/plugins/cacheresource.pdo.php
...
Fixes #706
2022-02-06 22:03:24 +01:00
Simon Wisselink
f90348971b
Merge pull request #722 from kochichi/bugfix/721
...
math equation return warning: max(x, y)
2022-02-06 21:54:54 +01:00
Simon Wisselink
9e0536de18
Merge branch 'release/4.1.0'
2022-02-06 21:34:27 +01:00
Simon Wisselink
265cf4f3bc
version bump
2022-02-06 21:34:26 +01:00
Simon Wisselink
47f95ad324
Merge pull request #717 from vemaeg/php81-doc
...
Updating PHP 8.0 to 8.1 in the docs and add php8.1 test runner.
2022-02-06 21:30:52 +01:00
Pavel Kochman
02633ecaba
math equation return warning: math: illegal character for : {math equation="max(x, y)" x=$x y=$y}
2022-02-04 21:03:25 +01:00
Thomas A. Hirsch
6786623afb
Activating jit compiler for ubuntu-latest + php 8.1
2022-01-21 17:58:35 +01:00
Thomas
2d97169086
Merge branch 'smarty-php:master' into php81-doc
2022-01-21 17:57:27 +01:00
Thomas
0f098802c6
Create getting-started.md
2022-01-21 17:55:23 +01:00
Thomas
bbcd5817f6
Update README.md
2022-01-21 17:51:45 +01:00
Simon Wisselink
612094d763
Updated changelog
2022-01-21 10:21:00 +01:00
Simon Wisselink
0ef0dda825
Merge pull request #713 from vemaeg/php81
...
PHP 8.1 compatibility (without IntlDateFormatter)
2022-01-21 10:18:48 +01:00
Thomas BACCELLI
cef8951100
Add PHP 8.1 tests
2022-01-18 15:56:23 +01:00
Thomas BACCELLI
323aefa89f
Fix phpunit warning
2022-01-18 15:56:23 +01:00
Thomas A. Hirsch
277648b81c
Cherry-picked from da76d927ed
...
Co-Authored-By: Thomas BACCELLI <tbaccelli@gmail.com >
2022-01-18 15:56:23 +01:00
Thomas A. Hirsch
8d3a7af308
Cherry-picked from da76d927ed
...
Co-Authored-By: Thomas BACCELLI <tbaccelli@gmail.com >
2022-01-18 15:56:23 +01:00
Simon Wisselink
cdf0f2b164
Merge branch 'release/4.0.4'
2022-01-18 00:17:19 +01:00
Simon Wisselink
995b7eb36f
version bump
2022-01-18 00:17:17 +01:00
Claas Augner
059bea274c
Support multiple operators in math equations ( #708 )
...
* fix(math): fix equation regexp
Fixes #702 .
2022-01-18 00:10:17 +01:00
Simon Wisselink
f707dadecb
Merge branch 'release/4.0.3'
2022-01-10 10:52:14 +01:00
Simon Wisselink
ace1c8e90f
version bump
2022-01-10 10:52:13 +01:00
Simon Wisselink
19ae410bf5
Merge pull request from GHSA-4h9c-v5vg-5m6m
...
* Prevent evasion of the static_classes security policy.
* Updated deprecated exception expectations.
2022-01-10 10:48:27 +01:00
Simon Wisselink
baad3115cd
Fixed PHPUnit expected Exceptions. ( #701 )
2022-01-10 09:46:01 +01:00
Simon Wisselink
6f4f06db7e
Merge branch 'release/4.0.2'
2022-01-10 00:09:08 +01:00
Simon Wisselink
a535445dfd
version bump
2022-01-10 00:09:06 +01:00
Simon Wisselink
215d81a9fa
Merge pull request from GHSA-29gp-2c3m-3j6m
...
* Temporary fix. Waiting for CVE
* Add CVE
2022-01-10 00:01:43 +01:00
Simon Wisselink
efb416e5ef
Fixed unit tests
2022-01-09 23:29:43 +01:00
Simon Wisselink
29c0e5ac51
Merge branch 'release/4.0.1'
2022-01-09 23:20:45 +01:00
Simon Wisselink
23be620fc8
version bump
2022-01-09 23:20:44 +01:00
Simon Wisselink
e6ab34654b
Merge remote-tracking branch 'origin/master'
2022-01-09 23:15:44 +01:00
Simon Wisselink
c7576eb1a1
Rewrote the mailto function to not use eval when encoding with javascript
2022-01-09 23:15:25 +01:00
Marc Laporte
56aadc697f
Fix a typo in docs ( #690 )
2021-12-22 23:01:19 +01:00
Darek Krzysztofiak
cd962280ce
Fix for php 8.0 ( #687 )
...
* Fix PHP 8.0
$parts must be an array, because the argument for count() must be countable, mb_split() returns an array or a boolean.
2021-12-03 17:13:52 +01:00
Simon Wisselink
cb5efd04c3
Improve the documentation, bringing it up to date with PHP7/8 and Smarty 4 and providing
...
a more logical introduction and getting started experience.
2021-12-03 16:51:08 +01:00
Simon Wisselink
3a91df797e
added links to appndixes, removed unuseful old appendixes
2021-12-03 12:18:46 +01:00
Simon Wisselink
6983788dfb
Merge branch 'master' of github.com:smarty-php/smarty
2021-12-03 12:15:04 +01:00
Simon Wisselink
09875a61f4
changed homepage links in composer.json
2021-12-03 12:04:13 +01:00
Simon Wisselink
428a701b18
Feature/add docs ( #689 )
...
* Add converted docs repo
* Set theme jekyll-theme-minimal
* Removed BC docs, added TOC
* Added TOCs, rewrote most important links in documentation. Linked README to new Github Pages site
* some link fixes
2021-12-03 11:59:22 +01:00
Simon Wisselink
baebd59bb4
Merge branch 'release/4.0.0'
2021-11-25 22:18:25 +01:00
Simon Wisselink
e603269eda
version bump
2021-11-25 22:18:24 +01:00
Simon Wisselink
572cbe5595
Make make-release.sh safer by checking for version number.
2021-10-22 15:59:46 +02:00
Simon Wisselink
ffb2fd923b
Update README.md. Fix references to Smarty3. Get rid of old changelog-like files.
2021-10-13 22:49:43 +02:00
Simon Wisselink
64a6333d5d
Merge branch 'release/4.0.0-rc.0'
2021-10-13 12:16:20 +02:00
Simon Wisselink
d0863f0d0b
version bump
2021-10-13 12:16:19 +02:00
Simon Wisselink
39b69f0142
Feature/php8 support ( #629 )
...
Adds support for PHP8.0, dropping support for PHP7.0 and below.
Backwards incompatible changes:
- Dropped support for php asp tags in templates (removed from php since php7.0)
- Dropped deprecated API calls that where only accessible through SmartyBC
- Dropped support for {php} and {include_php} tags and embedded PHP in templates. Embedded PHP will now be passed through as is.
- Removed all PHP_VERSION_ID and compare_version checks and conditional code blocks that are now no longer required
- Dropped deprecated SMARTY_RESOURCE_CHAR_SET and SMARTY_RESOURCE_DATE_FORMAT constants
- Dropped deprecated Smarty::muteExpectedErrors and Smarty::unmuteExpectedErrors API methods
- Dropped deprecated $smarty->getVariable() method. Use $smarty->getTemplateVars() instead.
- $smarty->registerResource() no longer accepts an array of callback functions
See the changelog for more details.
Switched CI from Travis to Github CI.
2021-10-13 12:15:17 +02:00
Simon Wisselink
9d4f8309ed
Merge branch 'release/3.1.40'
2021-10-13 12:04:31 +02:00
Simon Wisselink
7c4354e7b8
version bump
2021-10-13 12:04:29 +02:00
Simon Wisselink
770bc4aae2
Merge branch 'm-haritonov-escape'
2021-08-19 16:15:57 +02:00
Simon Wisselink
0ff7ba5ab6
Add changelog
2021-08-19 16:13:30 +02:00
Simon Wisselink
3b0fd82849
Merge branch 'escape' of https://github.com/m-haritonov/smarty into m-haritonov-escape
2021-08-19 15:26:27 +02:00
Ikko Ashimine
1a68b79b6c
Update README.md ( #668 )
...
github -> GitHub
2021-08-18 23:23:36 +02:00
Michael Voříšek
e3eabe0b96
Delete uninted file expectException ( #664 )
2021-05-25 21:18:07 +02:00
Simon Wisselink
4698dd9fb0
Changelog
2021-03-21 21:24:32 +01:00
David Goodwin
039043e5a2
Update modifier.escape.php ( #649 )
...
trigger a notice if an incorrect modifier was used (E.g.|escape:quotes vs |escape:quote).
2021-03-21 21:21:55 +01:00
Mihail Haritonov
9cde36e3bc
plugins: escape: javascript escaping secure fix
2021-02-28 16:44:56 +03:00
Simon Wisselink
290aee6db3
Update CHANGELOG.md
...
Add CVE's
2021-02-21 22:23:45 +01:00
Simon Wisselink
e2485fa45e
Create SECURITY.md
2021-02-21 22:03:44 +01:00
Simon Wisselink
e27da524f7
Merge branch 'release/3.1.39'
2021-02-17 22:57:51 +01:00
Simon Wisselink
a21f59663c
version bump
2021-02-17 22:57:50 +01:00
Simon Wisselink
3148d406a0
changelog
2021-02-17 22:57:33 +01:00
Simon Wisselink
4f634c0097
Merge branch 'bugfix/tplfunction_sandbox_escape'
2021-02-17 22:52:34 +01:00
Simon Wisselink
c9272058d9
Merge branch 'bugfix/template_object_sandbox_escape'
2021-02-17 22:51:38 +01:00
Simon Wisselink
e66e293a8a
Do not push release automatically in make release script, to enable a chance to catch any errors.
2021-02-17 22:50:52 +01:00
Simon Wisselink
74cab5a56b
updated changelog header to security
2021-02-17 22:30:35 +01:00
Simon Wisselink
8fc66e27a7
Cannot use in Smarty3 yet, revert to @expectedException
2021-02-01 10:33:00 +01:00
Simon Wisselink
2543174460
Cannot use in Smarty3 yet, revert to @expectedException
2021-02-01 10:31:20 +01:00
Simon Wisselink
288a54f6b0
Add unit test
2021-01-24 23:52:45 +01:00
Simon Wisselink
165f1bd4d2
Fixed Code injection vulnerability by using illegal function names
2021-01-24 23:44:07 +01:00
Simon Wisselink
6463519a6c
Prevent access to .template_object when in security mode to prevent PHP code injection vulnerability
2021-01-24 23:13:26 +01:00
Simon Wisselink
fedc127057
Mark tests that use sleep calls as slow, so we can ignore them when running unit tests in development
2021-01-16 23:01:15 +01:00
Ikko Ashimine
3af2df20a4
Fix typo in StreamVariableTest.php ( #616 )
...
existant -> existent
2021-01-08 17:28:33 +01:00
Simon Wisselink
63b3c0aed0
Merge branch 'release/3.1.38'
2021-01-08 15:05:42 +01:00
Simon Wisselink
2af2a07906
version bump
2021-01-08 15:05:40 +01:00
Simon Wisselink
cb4254355e
Removed unused error_reporting.ini file, updated version number in Smarty::SMARTY_VERSION, fixed inline phpdoc that caused an IDE error
2021-01-08 15:05:10 +01:00
Simon Wisselink
f65e7ddd22
fixed changelog
2021-01-07 00:34:08 +01:00
Simon Wisselink
92e05d4f8d
Brought lexer source functionally up-to-date with compiled version ( #625 )
...
Fixes #621
2021-01-07 00:26:28 +01:00
Simon Wisselink
e2b28167f8
Clarify correct LGPL version.
...
Fixes #612
2021-01-05 22:23:13 +01:00
Libor M
820782cd80
const fix for usage with comparison operators ( #618 )
...
Fixes #609 #613
2021-01-05 22:07:44 +01:00
Simon Wisselink
c295786e43
Fixes for php8.0.0beta3 ( #608 )
...
* Set $errcontext argument optional to support PHP 8
- Argument is optional and deprecated in PHP 7.2
* Getting ready for PHP8, handling changed error levels/handlers mostly
* php5 compat syntax
* Updated UndefinedTemplateVarTest for PHP8 (and disabled a check for PHP<5.6) and re-enabled php:nightly in travis config
* Attempt to fix travis runs for (almost) all php versions supported
* Fix unit tests for php8, force composer to think we are still php7 to pick a supported phpunit and being less specific about an error msg because PHP8 is in active development and the exact wording is changing.
* Fixed a unit test that accidentally passed on phpunit < 7 because of sloppy string comparison.
* changelog
* run travis in xenial where possible for latest php versions. Fix unit tests from freakingo over inconsistent error messages in php8-beta.
* Incorporated AnrDaemons suggestions, making composer figure out the required phpunit version instead of specifying it explicitly and removing a unneeded error supression (@).
Co-authored-by: Jorge Sá Pereira <me@jorgesapereira.com >
2020-09-12 21:37:31 +02:00
♚ PH⑦ de Soria™♛
859a09e1bb
Bumped phpdoc @version tag to 3.1.36 ( #598 )
...
Although this could be removed, since the header comment is still there, it's good to keep the @version tag updated in order to avoid confusion for those who read it :)
2020-09-11 13:34:15 +02:00
Simon Wisselink
a5934a755d
Fixed a unit test that accidentally passed on phpunit < 7 because of sloppy string comparison.
2020-09-11 13:22:45 +02:00
Stoll, Jonathan
dff1955cd5
Update to HTML5-syntax in debug template
...
* Replace deprecated tags
* Use CSS3 selectors
* Update html-frame
* Remove deprecated syntax
* Harmonize syntax in general
2020-06-19 21:20:46 +02:00
Simon Wisselink
5a72624380
Test travis config for PHP5 versions ( #592 )
...
* Run tests for PHP5.x
* Start from 5.3 since composer requires it and without it we cannot install phpunit
* Specify dist for 5.3
* Disabled nightly testing because phpunit doesn't support php8 yet.
2020-05-05 15:08:31 +02:00
Simon Wisselink
1418c8c422
Merge branch 'AnrDaemon-fix-php5.3-compat'
2020-05-05 09:21:07 +02:00
Simon Wisselink
f46c13b32a
Updated changelog
2020-05-05 09:20:56 +02:00
AnrDaemon
eae19f23b9
PHP 5.3 compatibility fixes
2020-05-05 01:37:36 +03:00
Sławomir Kaleta
e1c050a32c
Fix comment - Method can return string ( #583 )
2020-04-14 17:26:20 +02:00
Simon Wisselink
fd148f7ade
Merge branch 'release/3.1.36'
2020-04-14 16:44:26 +02:00
Simon Wisselink
07772aac90
version bump
2020-04-14 16:44:24 +02:00
Simon Wisselink
08227651fc
Fixed #584
2020-04-14 16:44:09 +02:00
Simon Wisselink
e0ea6899c8
fixed version of Smarty::SMARTY_VERSION and updates make-release script to do so automatically from now on
2020-04-14 16:40:44 +02:00
Simon Wisselink
97f700971f
Merge branch 'release/3.1.35'
2020-04-14 00:02:48 +02:00
Simon Wisselink
a0abc47588
version bump
2020-04-14 00:02:39 +02:00
Simon Wisselink
728a584ad5
Moved changelog to a keepachangelog.com format and added a release script
2020-04-14 00:02:18 +02:00
Simon Wisselink
290f7cfc3d
Moved the isset tests into the test suite
2020-04-13 23:44:39 +02:00
Simon Wisselink
48d24b7ad1
Fix repo layout for package maintainers ( #571 )
...
* Do not ignore lexer subfolder for export as this contains source files and add smarty-lexer as a composer dev-dependency.
* Remove unit tests etc from archive export
Please note that the generated lexer / parser classes are not exactly equivalent, as they have been editing to conform to coding standards afterwards. I did a quick review and there don't seem to be any differences in semantics though.
2020-04-13 22:32:23 +02:00
Simon Wisselink
19ef8342aa
Strip now removes whitespaces after comment ( #582 )
...
* Mark text sections as to be stripped, but do not strip them right away. Combine equivalent sections in chunks at the template level and strip combined chunks where possible.
- simplified Smarty_Internal_TemplateCompilerBase::processText along the way
Fixes #447
2020-04-13 22:27:42 +02:00
Simon Wisselink
4f89f6d84f
Throw SmartyException when setting caching attributes for cacheable plugin as compiling this would fail ( #573 )
...
Fixes #457
2020-04-13 22:26:24 +02:00
Simon Wisselink
4396351d75
Switched to a more advanced regex to test wheter parameter is a variable ( #567 )
...
* This appears to fix #453 , #498 , #499 and possibly more issues.
2020-04-13 22:24:29 +02:00
Simon Wisselink
17d4d43624
Feature/merge smarty-phpunit into tests subfolder ( #580 )
...
* Removed unneeded files and replace dummy.txt with .gitignore files
* Synced unit tests with master codebase, noted TODO's, fixed phpunit scripts and travis config
* fix php7.4 deprecation and remove php7.4 from travis allow_failures since php7.4 is current stable
Co-authored-by: Uwe Tews <uwe.tews@googlemail.com >
Co-authored-by: Uwe Tews <uwe.tews@gmail.com >
Co-authored-by: AnrDaemon <anrdaemon@yandex.ru >
2020-04-13 15:30:52 +02:00
Simon Wisselink
61e7412807
Merge pull request #570 from vadimkuragkovskiy/master
...
fix minor typo
2020-04-12 11:41:22 +02:00
Vadim Kuragkovskiy
38b5ac72fa
fix minor typo
2020-02-07 18:56:25 +02:00
Simon Wisselink
4b29dfce11
Merge pull request #566 from smarty-php/bugfix/506_foreachelse_on_arrayiterators
...
Bugfix/506 foreachelse on arrayiterators
2020-01-27 16:08:35 +01:00
Simon Wisselink
e0df3d47e2
Ignore templates_c dir
2020-01-27 16:04:04 +01:00
Simon Wisselink
62d772e734
Fixed broken nesting and null handling.
2020-01-27 16:02:02 +01:00
Simon Wisselink
388993e9ca
Fix foreachelse on arrayiterators
...
Keep track of main loop using a do_else variable.
Fixed #506
2020-01-27 15:24:45 +01:00
Simon Wisselink
97c27a0f2f
Merge pull request #503 from SeahunOh/master
...
fix typo
2020-01-26 23:49:57 +01:00
Monte Ohrt
b2ecd98ae0
update changelog to reflect resent pull request merges
2020-01-13 18:56:03 -06:00
mohrt
4911f49b9c
Merge pull request #535 from glensc/patch-1
...
exclude error_reporting.ini from git export
2020-01-13 18:51:34 -06:00
mohrt
a62a7caf97
Merge pull request #540 from Hunman/master
...
Fixing problem with assigning value to object variables as arrays in smarty_internal_compile_assign
2020-01-13 18:50:41 -06:00
mohrt
704fcef160
Merge pull request #542 from IT-Experte/master
...
Fixed using wrong get and set methods from class memcached
2020-01-13 18:48:56 -06:00
mohrt
d1f37449a9
Merge pull request #546 from matks/enhance-readme
...
Add Travis badge and php compatibility infos in readme
2020-01-13 18:46:14 -06:00
mohrt
9e9961feae
Merge pull request #551 from bits4breakfast/master
...
Replace callback typehint with callable
2020-01-13 18:45:23 -06:00
mohrt
4fb3f616b2
Merge pull request #560 from JercSi/master
...
Typo in exception message
2020-01-13 18:44:07 -06:00
mohrt
e4239d095a
Merge pull request #563 from caugner/patch-1
...
Fixes the change log date of the 3.1.34 release
2020-01-13 18:42:54 -06:00
Claas Augner
5547e0177b
fix change log date
2020-01-13 18:51:37 +01:00
JercSi
b9b9d30144
Typo in exception message
...
Added space between 'line' and line number.
2019-12-20 09:49:32 +01:00
Monte Ohrt
0137c2e7e6
update change log version
2019-12-12 18:56:47 -06:00
Matteo Galli
c7ee6a3333
Replace callback typehint with callable
...
`callback` is not a valid PHP type and makes static analysis tools failing
2019-08-14 09:34:42 +02:00
Mathieu Ferment
651b129700
Add Travis badge and php compatibility infos in readme
2019-07-04 11:11:51 +02:00
Mathias
6d8d3b67d8
Changed read and write methods for compatibility with class memcached
...
The methods of the memcached class have different parameters than the memcache class.
2019-05-24 12:08:44 +02:00
Sanyi
7bc96d56fe
Fix missing parenthesises in smarty_internal_compile_assign
2019-05-13 17:15:14 +02:00
Elan Ruusamäe
78924d8d68
exclude error_reporting.ini from git export
2019-03-02 18:11:04 +02:00
uwetews
c9f0de05f4
Fix PHPunit tests for PHP7 https://github.com/smarty-php/smarty/pull/532
2019-02-28 07:42:20 +01:00
uwetews
f93f95787f
Fix PHPunit tests for PHP7 https://github.com/smarty-php/smarty/pull/532
2019-02-28 05:59:23 +01:00
uwetews
70fc2fd276
Travis fix
2018-12-09 05:06:53 +01:00
uwetews
3ddd960337
Travis fix
2018-12-09 04:42:05 +01:00
uwetews
20bb96c1b0
Revert "Travis fix"
...
This reverts commit eca7ec7f48 .
2018-12-09 04:28:51 +01:00
uwetews
22cb50fcda
Revert "Travis fix"
...
This reverts commit 2db8437354 .
2018-12-09 04:28:28 +01:00
uwetews
f0d1b52094
Revert "Travis fix"
...
This reverts commit 4dbaa25cee .
2018-12-09 04:27:56 +01:00
uwetews
4dbaa25cee
Travis fix
2018-12-09 04:23:02 +01:00
uwetews
2db8437354
Travis fix
2018-12-09 04:17:23 +01:00
uwetews
eca7ec7f48
Travis fix
2018-12-09 04:05:30 +01:00
uwetews
d453d9e667
Merge pull request #515 from AnrDaemon/use-classmaps
...
Use Composer classmap autoload instead of custom bootstrap.
2018-11-28 07:01:04 +01:00
AnrDaemon
dc2484dd3c
Merge branch 'master' into use-classmaps
2018-11-26 21:21:43 +03:00
AnrDaemon
91af98d328
Tweaked the composer.json a little.
2018-11-26 20:58:42 +03:00
uwetews
69c6a0d650
Merge pull request #509 from jplusc/patch-1
...
minor typo in NEW_FEATURES.txt (setLiterals)
2018-11-11 09:16:56 +01:00
jplusc
69e8f3f892
minor typo in NEW_FEATURES.txt (setLiterals)
...
function is actually 'setLiterals' but docs refer to 'setLiteral'
2018-11-10 21:44:33 -05:00
shpik
5ccdf3a3fc
fix typo
...
fix typo
2018-11-01 01:01:47 +09:00
uwetews
68537949f2
- bugfix a nested subblock in an inheritance child template was not replace by
...
outer level block with same name in same child template https://github.com/smarty-php/smarty/issues/500
2018-10-30 01:03:52 +01:00
uwetews
433d220fa1
- bugfix Smarty::$php_handling == PHP_PASSTHRU (default) did eat the "\n" (newline) character if it did directly followed
...
a PHP tag like "?>" or other https://github.com/smarty-php/smarty/issues/501
2018-10-29 23:32:22 +01:00
uwetews
3626e37c53
- bugfix autoloader exit shortcut https://github.com/smarty-php/smarty/issues/467
2018-10-14 04:18:45 +02:00
uwetews
b05bc1b617
- bugfix in date-format modifier; NULL at date string or default_date did not produce correct output
...
https://github.com/smarty-php/smarty/pull/458
2018-10-11 09:22:23 +02:00
uwetews
c930f0e207
- bugfix {insert} not works when caching is enabled and included template is present
...
https://github.com/smarty-php/smarty/issues/496
2018-10-11 06:56:22 +02:00
uwetews
7f531f6a44
09.10.2018
...
- bugfix fix of 26.8.2017 https://github.com/smarty-php/smarty/issues/327
modifier is applied to sum expression https://github.com/smarty-php/smarty/issues/491
- bugfix indexed arrays could not be defined "array(...)""
2018-10-09 03:36:14 +02:00
uwetews
9301ba4bfc
09.10.2018
...
- bugfix fix of 26.8.2017 https://github.com/smarty-php/smarty/issues/327
modifier is applied to sum expression https://github.com/smarty-php/smarty/issues/491
- bugfix indexed arrays could not be defined "array(...)""
2018-10-09 03:34:34 +02:00
uwetews
5204723bc6
update .travis.yml
2018-09-18 05:36:27 +02:00
uwetews
a6cb648dfc
- bugfix large plain text template sections without a Smarty tag > 700kB could
...
could fail in version 3.1.32 and 3.1.33 because PHP preg_match() restrictions
https://github.com/smarty-php/smarty/issues/488
2018-09-18 04:46:30 +02:00
AnrDaemon
b9dbd46289
Merge branch 'master' into use-classmaps
2018-09-14 17:25:51 +03:00
uwetews
dd55b23121
Prepare 3.1.33 release
2018-09-12 22:54:16 +02:00
uwetews
2d1905cd88
- bugfix {foreach} using new style property access like {$item@property} on
...
Smarty 2 style named foreach loop could produce errors https://github.com/smarty-php/smarty/issues/484
2018-09-03 01:18:26 +02:00
uwetews
2c60503dfc
- bugfix some custom left and right delimiters like '{^' '^}' did not work
...
https://github.com/smarty-php/smarty/issues/450 https://github.com/smarty-php/smarty/pull/482
2018-08-31 17:32:44 +02:00
uwetews
7b64226e16
- reformating for PSR-2 coding standards https://github.com/smarty-php/smarty/pull/483
2018-08-31 16:46:20 +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
d52a04fba1
travis configuration problem fpr PHP 5.4
2018-08-31 16:24:31 +02:00
uwetews
8a4a817c66
- bugfix on Windows absolute filepathes did fail if the drive letter was followed by a linux DIRECTORY_SEPARATOR
...
like C:/ at Smarty > 3.1.33-dev-5 https://github.com/smarty-php/smarty/issues/451
2018-08-31 16:07:47 +02:00
uwetews
7a8607fe17
- PSR-2 code style fixes for config and template file Lexer/Parser generated with
...
the Smarty Lexer/Parser generator from https://github.com/smarty-php/smarty-lexer
https://github.com/smarty-php/smarty/pull/483
2018-08-31 02:37:47 +02:00
Uwe Tews
3a78a21f14
Update .gitattributes to force eol=lf
2018-08-30 17:38:07 +02:00
uwetews
a1f6720318
- bugfix/enhancement {capture} allow variable as capture block name in Smarty special variable
...
like $smarty.capture.$foo https://github.com/smarty-php/smarty/issues/478 https://github.com/smarty-php/smarty/pull/481
2018-08-26 00:46:29 +02:00
uwetews
8e09f97a14
- bugfix/enhancement {capture} allow variable as capture block name in Smarty special variable
...
like $smarty.capture.$foo https://github.com/smarty-php/smarty/issues/478 https://github.com/smarty-php/smarty/pull/481
2018-08-26 00:20:31 +02:00
uwetews
72185fb743
Merge pull request #477 from dusta/master
...
Fixed #476 , Wrong demo directory location
2018-08-19 11:48:13 +02:00
uwetews
7096c99ff3
- 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 (reverted from commit 2fe3a30e75 ) (reverted from commit ed674ee050 )
2018-08-19 10:30:28 +02:00
uwetews
ed674ee050
- 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 (reverted from commit 2fe3a30e75 )
2018-08-19 10:22:47 +02:00
Sławomir Kaleta
d191935127
Fixed #476 , Wrong demo directory location
2018-08-19 09:47:58 +02:00
uwetews
2fe3a30e75
- 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:41:43 +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
uwetews
b5e5085391
Merge pull request #452 from dusta/Update-PSR-2
...
Update PSR-2
2018-08-12 03:20:33 +02:00
AnrDaemon
da29452d74
Updated composer.json with require-dev deps.
2018-07-19 20:03:29 +03:00
AnrDaemon
e9dacb4fd0
Integrate ongoing master.
2018-06-19 07:51:02 +03:00
Sławomir Kaleta
2404095783
Update PSR-2
2018-06-12 09:58:15 +02:00
Uwe Tews
cc4d8fa1a0
- bugfix strip-block produces different output in Smarty v3.1.32 https://github.com/smarty-php/smarty/issues/436
2018-05-17 16:04:48 +02:00
Uwe Tews
87ec44e9f8
- bugfix Smarty::compileAllTemplates ignores $extension parameter https://github.com/smarty-php/smarty/issues/437
...
https://github.com/smarty-php/smarty/pull/438
2018-05-17 13:50:14 +02:00
Uwe Tews
e2aec4d011
Fix annotation https://github.com/smarty-php/smarty/issues/441
2018-05-17 08:12:26 +02:00
Uwe Tews
514d99beaa
- improvement do not compute total property in {foreach} if not needed https://github.com/smarty-php/smarty/issues/443
2018-05-17 06:27:35 +02:00
Uwe Tews
115e178884
- bugfix plugins may not be loaded when setMergeCompiledIncludes is true https://github.com/smarty-php/smarty/issues/435
2018-05-17 04:40:58 +02:00
Uwe Tews
cb59fc5537
Delete unwanted file
2018-04-28 05:32:02 +02:00
Uwe Tews
c9dbe1d08c
- bugfix regarding Security Vulnerability did not solve the problem under Linux
2018-04-26 21:38:08 +02:00
Uwe Tews
2e081a51b1
- bugfix regarding Security Vulnerability did not solve the problem under Linux
2018-04-26 18:06:45 +02:00
Uwe Tews
f9ca3c63d1
- bugfix regarding Security Vulnerability did not solve the problem under Linux
2018-04-26 13:02:51 +02:00
Uwe Tews
ac9d4b587e
Release version 3.1.32
2018-04-24 16:53:33 +02:00
Uwe Tews
e83bdc2ece
Revert "remove - php: nightly test"
...
This reverts commit 216ada91f3 .
2018-04-24 16:51:39 +02:00
Uwe Tews
bcedfd6b58
Release version 3.1.32
2018-04-24 16:14:10 +02:00
Uwe Tews
216ada91f3
remove - php: nightly test
2018-04-24 16:00:35 +02:00
Uwe Tews
a57d514e8c
update .travis.yml
2018-04-24 12:41:39 +02:00
Uwe Tews
20c3f70379
update .travis.yml
2018-04-24 12:37:01 +02:00
Uwe Tews
c95d3f3a4d
- fix compatibility for PHP version < 5.6
2018-04-24 11:33:47 +02:00
Uwe Tews
8d21f38dc3
- bugfix possible Security Vulnerability in Smarty_Security class.
2018-04-24 10:38:18 +02:00
Uwe Tews
fbbb292ef0
update access to parent object
2018-04-19 16:04:41 +02:00
Uwe Tews
8bea607b78
fix comment lines of inline subtemplates
2018-04-19 15:57:37 +02:00
uwetews
7c3606e839
Merge pull request #432 from dusta/patch-1
...
Update README.md
2018-04-19 13:14:12 +02:00
Dusta
b2d55b677d
Update README.md
...
Add https, add dots
2018-04-14 20:32:35 +02:00
Uwe Tews
860ebb618e
- bugfix plugins may not be loaded if {function} or {block} tags are executed in nocache mode
2018-03-28 07:35:52 +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
cf22e986c0
- new feature {parent} = {$smarty.block.parent} {child} = {$smarty.block.child}
2018-03-28 07:14:29 +02:00
Uwe Tews
0dbace8321
- new feature {parent} = {$smarty.block.parent} {child} = {$smarty.block.child}
2018-03-26 22:35:31 +02:00
Uwe Tews
c81948d602
- bugfix preg_replace could fail on large content resulting in a blank page https://github.com/smarty-php/smarty/issues/417
2018-03-23 19:34:18 +01:00
Uwe Tews
3a3b8c75a1
- bugfix preg_replace could fail on large content resulting in a blank page https://github.com/smarty-php/smarty/issues/417
2018-03-23 19:14:53 +01:00
Uwe Tews
d646d4678c
- bugfix preg_replace could fail on large content resulting in a blank page https://github.com/smarty-php/smarty/issues/417
2018-03-23 19:11:12 +01:00
Uwe Tews
d79af55485
- bugfix short form of {section} attributes did not work https://github.com/smarty-php/smarty/issues/428
2018-03-21 15:19:57 +01:00
Uwe Tews
b7e7def0b1
- bugfix {$smarty.section...} used outside {section}{/section} showed incorrect values if {section}{/section} was called inside
...
another loop https://github.com/smarty-php/smarty/issues/422
2018-03-21 07:36:11 +01:00
Uwe Tews
60415e6f2a
- improvement Smarty::compileAllTemplates() exit with a non-zero status code if max errors is reached https://github.com/smarty-php/smarty/pull/402
2018-03-17 08:31:40 +01:00
Uwe Tews
a5961606f3
- bugfix extends resource did not work with user defined left/right delimiter https://github.com/smarty-php/smarty/issues/419
2018-03-16 18:44:47 +01:00
AnrDaemon
ca00a31f71
Use Composer classmap instead of bootstrap.
2017-12-05 21:19:17 +03:00
Uwe Tews
93909aacf8
bugfix {break} and {continue} could fail if {foreach}{/foreach} did contain other looping tags like {for}, {section} and {while} https://github.com/smarty-php/smarty/issues/323
2017-11-22 01:21:09 +01:00
Uwe Tews
40ea5d89da
- replacement of " by '
2017-11-20 12:26:48 +01:00
Uwe Tews
fcf108b33f
bugfix variable filter might not have been loaded in cache file for use in nocache sections.
2017-11-20 11:11:46 +01: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
654659aadf
remove html tags from PHPDoc blocks
2017-11-11 07:11:33 +01:00
Uwe Tews
96bcbd2221
fix comment correct last commit
2017-11-11 07:10:35 +01:00
Uwe Tews
efe0e4c40c
fix comment
2017-11-11 06:44:33 +01:00
Uwe Tews
da273df95f
remove blanks on line endings
2017-11-06 19:27:14 +01:00
Uwe Tews
5220ca6776
- bugfix {$smarty.section.name.loop} used together with {$smarty.section.name.total} could produce
...
wrong results (forum topic 27041) 3.1.32-dev-35
2017-11-06 04:58:02 +01:00
Uwe Tews
3fc8abeb98
code cleanup and optimizations 3.1.32-dev-34
2017-11-06 01:02:56 +01:00
Uwe Tews
3799714d53
lexer/parser optimization
2017-11-05 20:04:32 +01:00
Uwe Tews
dd9c076dfa
- correction of PHPDoc blocks
...
- minor code cleanup
2017-10-26 10:25:41 +02:00
Uwe Tews
812758225c
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR
...
version update because of recent commit problems
2017-10-26 06:34:51 +02:00
Uwe Tews
5d8cd94c1d
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR
2017-10-26 06:30:19 +02:00
Uwe Tews
570bc41b12
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR
2017-10-26 06:14:22 +02:00
Uwe Tews
4575a31e62
- deprecate functions Smarty::muteExpectedErrors() and Smarty::unmuteExpectedErrors()
...
as Smarty does no longer use error suppression like @filemtime().
for backward compatibility code is moved from Smarty class to an external class and still can be
called.
2017-10-26 06:00:40 +02:00
Uwe Tews
926ed8714b
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR
2017-10-26 05:36:13 +02:00
Uwe Tews
f86d251e5b
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR
2017-10-26 05:27:25 +02:00
Uwe Tews
c404294a1f
- bugfix Smarty version was not filled in header comment of compiled and cached files
2017-10-26 05:09:07 +02:00
Uwe Tews
87f260e3a9
fix Smarty version in header comment (reverted from commit 5ec2e1f62b)
2017-10-26 04:37:39 +02:00
Uwe Tews
41621ca35e
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR (reverted from commit f7a5316205)
2017-10-26 04:37:31 +02:00
Uwe Tews
a675aaf68e
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR (reverted from commit f7a5316205) (reverted from commit beaa293eb3)
2017-10-26 04:37:17 +02:00
Uwe Tews
f3950a45a7
- bugfix Smarty version was not filled in header comment of compiled and cached files
...
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR (reverted from commit 1e787d08f1 )
2017-10-26 04:37:05 +02:00
Uwe Tews
8e9108544a
- bugfix Smarty version was not filled in header comment of compiled and cached files
...
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR (reverted from commit 1e787d08f1 ) (reverted from commit 42a292d56a )
2017-10-26 04:36:41 +02:00
Uwe Tews
4cbc436599
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR (reverted from commit f7a5316205) (reverted from commit beaa293eb3) (reverted from commit 86f36196e2)
2017-10-26 04:36:17 +02:00
Uwe Tews
eaac933770
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR (reverted from commit f7a5316205) (reverted from commit beaa293eb3) (reverted from commit 86f36196e2) (reverted from commit 36c6a72015)
2017-10-26 04:36:08 +02:00
Uwe Tews
36c6a72015
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR (reverted from commit f7a5316205) (reverted from commit beaa293eb3) (reverted from commit 86f36196e2)
2017-10-26 04:35:56 +02:00
Uwe Tews
86f36196e2
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR (reverted from commit f7a5316205) (reverted from commit beaa293eb3)
2017-10-26 04:19:23 +02:00
Uwe Tews
42a292d56a
- bugfix Smarty version was not filled in header comment of compiled and cached files
...
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR (reverted from commit 1e787d08f1 )
2017-10-26 04:18:28 +02:00
Uwe Tews
1e787d08f1
- bugfix Smarty version was not filled in header comment of compiled and cached files
...
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR
2017-10-26 03:38:27 +02:00
Uwe Tews
beaa293eb3
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR (reverted from commit f7a5316205)
2017-10-26 03:37:40 +02:00
Uwe Tews
f7a5316205
- optimization replace internal Smarty::$ds property by DIRECTORY_SEPARATOR
2017-10-22 03:38:10 +02:00
Uwe Tews
5ec2e1f62b
fix Smarty version in header comment
2017-10-21 23:43:22 +02:00
Uwe Tews
3d7dece088
- bugfix custom delimiters could fail since modification of version 3.1.32-dev-23
...
https://github.com/smarty-php/smarty/issues/394
2017-10-21 13:14:14 +02:00
Uwe Tews
668d07cda9
disable php5.2 tests
2017-10-18 14:03:22 +02:00
Uwe Tews
338f5a5769
enable PHPunit tests for PHP 5.2 and 5.3
2017-10-18 13:50:29 +02:00
Uwe Tews
19ebab9e4a
enable PHPunit tests for PHP 5.2 and 5.3
2017-10-18 13:39:19 +02:00
Uwe Tews
e4f41adf5a
-bugfix fix implementation of unclosed block tag in double quoted string of 12.10.2017
...
https://github.com/smarty-php/smarty/issues/396 https://github.com/smarty-php/smarty/issues/397
https://github.com/smarty-php/smarty/issues/391 https://github.com/smarty-php/smarty/issues/392
2017-10-18 09:40:38 +02:00
Uwe Tews
6b97d5cdd5
- unclosed block tag in double quted string must throw compiler exception.
...
https://github.com/smarty-php/smarty/issues/391 https://github.com/smarty-php/smarty/issues/392
2017-10-12 20:15:42 +02:00
Uwe Tews
b271173a2d
bugfix $smarty.block.child and $smarty.block.parent could not be used like any
...
$smarty special variable https://github.com/smarty-php/smarty/issues/393
2017-10-12 08:21:12 +02:00
Uwe Tews
34fc5e6b46
remove phpunit tests for hhvm
2017-10-09 23:50:45 +02:00
Uwe Tews
64ed85a954
enable PHPunit tests for PHP 7.2 and hhvm
2017-10-09 23:28:58 +02:00
Uwe Tews
0bf112c2bb
Use phpunit 6.4.1 for PHP 7.1
2017-10-09 21:26:36 +02:00
Uwe Tews
157f51086c
Test phpunit 6.4.1 (reverted from commit f60d8a763c)
2017-10-09 17:04:03 +02:00
Uwe Tews
7e84d34363
Use phpunit 6.4.1 for PHP 7.1
2017-10-09 16:38:32 +02:00
Uwe Tews
0f0fdf0200
Use phpunit 6.4.1 for PHP 7.1
2017-10-09 15:22:35 +02:00
Uwe Tews
0b8940c75e
Use phpunit 6.4.1 for PHP 7.1
2017-10-09 14:30:08 +02:00
Uwe Tews
b98be78cbf
Use phpunit 6.4.1 for PHP 7.1
2017-10-09 14:17:47 +02:00
Uwe Tews
0cad914147
Test phpunit 6.4.1
2017-10-09 14:08:36 +02:00
Uwe Tews
d76a00673b
Test phpunit 6.4.1
2017-10-09 13:56:16 +02:00
Uwe Tews
f60d8a763c
Test phpunit 6.4.1
2017-10-09 13:53:21 +02:00
Uwe Tews
1bb374c1fb
Test phpunit 6.4.1
2017-10-09 13:39:54 +02:00
Uwe Tews
8d3153401a
Test phpunit 6.4.1
2017-10-09 13:27:39 +02:00
Uwe Tews
f55baf5e73
Test phpunit 6.4.1
2017-10-09 13:19:19 +02:00
Uwe Tews
89d924659e
Test phpunit 6.4.1
2017-10-09 13:15:55 +02:00
Uwe Tews
989e49a7de
Test phpunit 6.4.1
2017-10-09 13:13:11 +02:00
Uwe Tews
2777efb84e
Test phpunit 6.4.1
2017-10-09 13:07:51 +02:00
Uwe Tews
68b73fe153
Test phpunit 6.1
2017-10-09 13:02:59 +02:00
Uwe Tews
030abc6364
Test against 7.1.9
...
PHPunit does fail on 7.1.10
2017-10-09 10:53:47 +02:00
Uwe Tews
b1cc51a380
set error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT for PHP versions == 7.1
2017-10-09 10:23:21 +02:00
Uwe Tews
e25bc7a291
set error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT for PHP versions >= 7.0
2017-10-09 10:13:52 +02:00
Uwe Tews
9ad66c695d
Update COMPOSER_RELEASE_NOTES.txt
...
https://github.com/smarty-php/smarty/issues/373
2017-10-09 08:53:58 +02:00
Uwe Tews
428efa634d
- bugfix modification of 9.8.2017 did fail on some recursive
...
tag nesting. https://github.com/smarty-php/smarty/issues/389
2017-10-07 09:05:54 +02:00
Uwe Tews
b0ea1cb5df
Improve extension handler
2017-10-07 08:20:18 +02:00
Uwe Tews
deb9e12aaa
- bugfix {make_nocache} did display code if the template did not contain other nocache code
...
https://github.com/smarty-php/smarty/issues/369
2017-08-26 16:13:04 +02:00
Uwe Tews
94c2ab7e54
- bugfix templates filepath with multibyte characters did not work
...
https://github.com/smarty-php/smarty/issues/385
2017-08-26 14:56:02 +02:00
Uwe Tews
f90b449d21
- bugfix chained modifier failed when last modifier parameter is a signed value
...
https://github.com/smarty-php/smarty/issues/327
2017-08-26 11:47:41 +02:00
Uwe Tews
511773ce6b
- improvement repeated delimiter like {{ and }} will be treated as literal
...
https://groups.google.com/forum/#!topic/smarty-developers/h9r82Bx4KZw
2017-08-09 12:58:47 +02:00
Uwe Tews
2c1f0312a1
register autoloader as first in chain
2017-08-09 12:22:37 +02:00
Uwe Tews
6a257a7ad3
- improvement repeated delimiter like {{ and }} will be treated as literal
...
https://groups.google.com/forum/#!topic/smarty-developers/h9r82Bx4KZw
2017-08-09 12:20:33 +02:00
Uwe Tews
418a1fd443
- improvement repeated delimiter like {{ and }} will be treated as literal
...
https://groups.google.com/forum/#!topic/smarty-developers/h9r82Bx4KZw
2017-08-09 11:15:33 +02:00
Uwe Tews
353240c38d
fixed spelling
2017-08-06 05:01:15 +02:00
Uwe Tews
db16d0d2e6
fixed typo
2017-08-06 02:58:05 +02:00
Uwe Tews
30526520b6
- cleanup of _getSmartyObj()
2017-08-05 23:08:59 +02:00
Uwe Tews
5cc9b27784
- bugfix wordwrap modifier could fail if used in nocache code.
...
converted plugin file shared.mb_wordwrap.php into modifier.mb_wordwrap.php
2017-08-05 19:59:23 +02:00
Uwe Tews
c3b331d2ad
remove PHP 5.3 test
2017-07-31 23:26:41 +02:00
Uwe Tews
da6181f733
Update travis.yml
2017-07-31 23:23:35 +02:00
Uwe Tews
036f1143fa
Update travis.yml
2017-07-31 23:09:38 +02:00
Uwe Tews
105651a469
- Call clearstatcache() after mkdir() failure https://github.com/smarty-php/smarty/pull/379
2017-07-31 18:58:41 +02:00
Uwe Tews
bcfea52cbf
- rewrite mkdir() bugfix to retry automatically see https://github.com/smarty-php/smarty/pull/377
...
https://github.com/smarty-php/smarty/pull/379
2017-07-30 05:16:31 +02:00
Uwe Tews
5165776aec
add link to documentation
...
https://github.com/smarty-php/smarty/issues/380
2017-07-30 00:39:41 +02:00
uwetews
b562e9527e
Merge pull request #320 from glensc/patch-1
...
Update Autoloader.php comment
2017-07-21 08:17:14 +02:00
Uwe Tews
5a8d015ef1
- bugfix solve preg_match() hhvm parameter problem https://github.com/smarty-php/smarty/pull/372
2017-07-21 08:12:33 +02:00
Uwe Tews
f3325c4923
Merge pull request #377 from a-shpota/fix-writefile-sysplugin
...
fix 'mkdir(): File exists' error on create directory from parallel processes
2017-07-21 06:46:13 +02:00
uwetews
ba2de9721b
Merge pull request #377 from a-shpota/fix-writefile-sysplugin
...
fix 'mkdir(): File exists' error on create directory from parallel processes
2017-07-21 06:38:05 +02:00
Uwe Tews
67e9d08371
remove hhvm from travis tests
2017-07-21 05:53:22 +02:00
Uwe Tews
bd6bf0628e
fix travis for hhvm testing
2017-07-21 05:43:05 +02:00
Uwe Tews
614ad1f8b9
- security possible PHP code injection on custom resources at display() or fetch()
...
calls if the resource does not sanitize the template name
2017-07-21 05:13:54 +02:00
Andrew Shpota
6768340a97
fix 'mkdir(): File exists' error on create directory from parallel
...
processes
2017-07-14 15:10:12 +03:00
uwetews
a6f3a518e1
- improvement replace phpversion() by PHP_VERSION constant.
...
https://github.com/smarty-php/smarty/pull/363
2017-05-27 14:37:35 +02:00
uwetews
03e2a1c8a2
- bugfix https://github.com/smarty-php/smarty/pull/368 did break the default plugin handler
2017-05-27 12:33:48 +02:00
uwetews
ea93486135
- bugfix https://github.com/smarty-php/smarty/pull/368 did break the default plugin handler
2017-05-27 12:18:43 +02:00
uwetews
ef889c79e0
- bugfix change compiled code for registered function and modifiers to called as callable to allow closures
...
https://github.com/smarty-php/smarty/pull/368
2017-05-27 11:30:21 +02:00
uwetews
e51b0ac4af
- performance store flag for already required shared plugin functions in static variable or
...
Smarty's $_cache to improve performance when plugins are often called
https://github.com/smarty-php/smarty/commit/51e0d5cd405d764a4ea257d1bac1fb1205f74528#commitcomment-22280086
2017-05-27 11:04:00 +02:00
uwetews
a49a08748f
Remove nightly test. Does hang on PHP 7.2
2017-05-21 19:55:25 +02:00
uwetews
63b578708f
disable PHP 5.2 tests
2017-05-21 19:23:25 +02:00
uwetews
0f2d703c63
Add PHP 5.2 to test (reverted from commit 3dbb5c4eae)
2017-05-21 18:59:00 +02:00
uwetews
3dbb5c4eae
Add PHP 5.2 to test
2017-05-21 18:34:21 +02:00
uwetews
cd1a864751
Add PHP 5.2 to test (reverted from commit 9e7c1f4b0d)
2017-05-21 18:22:43 +02:00
uwetews
9e7c1f4b0d
Add PHP 5.2 to test
2017-05-21 18:20:19 +02:00
uwetews
f860f7ce88
- bugfix version 3.1.31 did fail under PHP 5.2
...
https://github.com/smarty-php/smarty/issues/365
2017-05-21 18:19:52 +02:00
uwetews
28688d5ce7
- new feature The named capture buffers can now be accessed also as array
...
See NEWS_FEATURES.txt https://github.com/smarty-php/smarty/issues/366
fixed bug in above change
2017-05-21 17:14:30 +02:00
uwetews
4fd1f7684e
- bugfix remove deleted files by clear_cache() and clear_compiled_template() from
...
ACP cache if present, add some is_file() checks to avoid possible warnings on filemtime()
caused by above functions.
https://github.com/smarty-php/smarty/issues/341
2017-05-21 16:58:58 +02:00
uwetews
61b59a9ec3
- bugfix remove special treatment of classes implementing ArrayAccess in {foreach}
...
https://github.com/smarty-php/smarty/issues/332
2017-05-21 02:24:48 +02:00
uwetews
da22c961bb
- improvement check if ini_get() and ini_set() not disabled
...
https://github.com/smarty-php/smarty/pull/362
2017-05-21 02:24:48 +02:00
uwetews
2782e83a92
- new feature The named capture buffers can now be accessed also as array
...
See NEWS_FEATURES.txt https://github.com/smarty-php/smarty/issues/366
2017-05-21 02:24:48 +02:00
uwetews
d571ffa111
Merge pull request #361 from zonuexe/patch-1
...
Fix markdown
2017-05-19 19:02:48 +02:00
uwetews
8f54ad7c96
Merge pull request #354 from jcodt/master
...
Fix markdown titles
2017-05-19 19:02:08 +02:00
uwetews
f0e215b954
- change properties $accessMap and $obsoleteProperties from private to protected
...
https://github.com/smarty-php/smarty/issues/351
2017-05-19 04:54:49 +02:00
USAMI Kenta
e3cea24be1
Fix markdown
...
affected by GitHub's Markdown parser change
https://githubengineering.com/a-formal-spec-for-github-markdown/
2017-05-11 10:50:42 +09:00
jcodt
5af93831ee
Fix markdown titles
2017-04-25 17:49:55 +02:00
uwetews
5448fecc9d
- fix spelling https://github.com/smarty-php/smarty/commit/e3eda8a5f5653d8abb960eb1bc47e3eca679b1b4#commitcomment-21803095
2017-04-24 18:21:37 +02:00
uwetews
e3eda8a5f5
- correct generated code on empty() and isset() call, observe change PHP behaviour since PHP 5.5
...
https://github.com/smarty-php/smarty/issues/347
2017-04-17 05:32:24 +02:00
uwetews
29388b8baa
- correct generated code on empty() and isset() call, observe change PHP behaviour since PHP 5.5
...
https://github.com/smarty-php/smarty/issues/347 (reverted from commit cfd8bf32b0 )
2017-04-17 05:04:44 +02:00
uwetews
f7bdfe463b
Add PHP 7.1 to travis tests
2017-04-17 04:35:17 +02:00
uwetews
cfd8bf32b0
- correct generated code on empty() and isset() call, observe change PHP behaviour since PHP 5.5
...
https://github.com/smarty-php/smarty/issues/347
2017-04-17 03:49:39 +02:00
uwetews
1a7328ca67
- merge pull requests https://github.com/smarty-php/smarty/pull/349 , https://github.com/smarty-php/smarty/pull/322 and
...
https://github.com/smarty-php/smarty/pull/337 to fix spelling and annotation
2017-04-14 15:01:43 +02:00
uwetews
cfc3f8c424
Merge pull request #322 from simivar/patch-1
...
Fix annotation for addPluginsDir()
2017-04-14 14:52:18 +02:00
uwetews
ec9fd99684
Merge pull request #349 from ka7/feature/spelling
...
spelling fixes
2017-04-14 14:37:18 +02:00
uwetews
00974d74b8
Merge pull request #337 from SvenRtbg/patch-1
...
Fix typo in @method annotation
2017-04-14 14:33:19 +02:00
uwetews
6d85c715f1
- bugfix array_merge() parameter should be checked https://github.com/smarty-php/smarty/issues/350
2017-04-13 07:15:46 +02:00
uwetews
fd95365bf3
Prepare 3.1.32-dev
2017-04-13 05:17:27 +02:00
klemens
51a0e764e8
spelling fixes
2017-04-08 12:10:39 +02:00
SvenRtbg
697df30d18
Fix typo in @method annotation
...
It's `setDefaultModifiers()`, not `setDefaultModifier()`
2017-02-14 22:48:26 +01:00
simivar
1900ce24a3
Fix annotation for addPluginsDir()
...
Param of [addPluginsDir()](http://www.smarty.net/docs/en/api.add.plugins.dir.tpl ) can be null, array or a string. Fixed annotation so there will be no IDE warnings.
2016-12-29 14:52:35 +01:00
Elan Ruusamäe
66205d5565
Update Autoloader.php
...
spelling fix
2016-12-21 23:36:37 +02:00
uwetews
c7d42e4a32
prepare 3.1.31 release
2016-12-14 22:57:25 +01: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
91af9d090a
- bugfix inheritance root child templates containing nested {block}{/block} could call sub-bock content from parent
...
template https://github.com/smarty-php/smarty/issues/317
2016-11-19 07:34:06 +01:00
uwetews
05933749c0
- smaller speed optimization
2016-11-11 23:09:28 +01:00
uwetews
be054c1727
touch
2016-11-11 22:17:35 +01:00
uwetews
5b9699b41a
touch
2016-11-11 22:16:58 +01:00
uwetews
b745a31a2d
fixed spelling chilek commented on c4746e9
2016-11-11 21:17:32 +01:00
uwetews
d120c1fad2
- bugfix when Smarty is using a cached template object on Smarty::fetch() or Smarty::isCached() the inheritance data
...
must be removed https://github.com/smarty-php/smarty/issues/312
2016-11-11 20:13:40 +01:00
uwetews
e867ae125e
add utility to build Smarty_Internal_Testinstall
2016-11-08 18:09:14 +01:00
uwetews
7438ac39d0
Merge pull request #295 from glensc/patch-1
...
exclude files from git export
2016-11-08 18:04:08 +01:00
uwetews
428a7ad883
- add bootstrap file to load and register Smarty_Autoloader. Change composer.json to make it known to composer
2016-11-08 17:48:25 +01:00
uwetews
c4746e9080
- optimization of lexer speed https://github.com/smarty-php/smarty/issues/311
2016-11-07 03:08:11 +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
98efe22e02
- improvement/bugfix when Smarty::fetch() is called on a template object the inheritance and tplFunctions property
...
should be copied to the called template object
2016-10-23 18:48:17 +02:00
uwetews
d79edd2fe0
- improvement/bugfix when Smarty::fetch() is called on a template object the inheritance and tplFunctions property
...
should be copied to the called template object
2016-10-23 18:34:59 +02:00
uwetews
29cbe10857
- bugfix for compile locking touched timestamp of old compiled file was not restored on compilation error https://github.com/smarty-php/smarty/issues/308
2016-10-21 04:00:07 +02:00
uwetews
6699299767
- bugfix nocache code was not removed in cache file when subtemplate did contain PHP short tags in text but no other
...
nocache code https://github.com/smarty-php/smarty/issues/300
2016-10-20 00:53:04 +02:00
uwetews
34e5739fc1
- bugfix {make_nocache $var} remove spaces from variable value https://github.com/smarty-php/smarty/issues/304
2016-10-19 20:43:17 +02:00
uwetews
80a024f44e
- bugfix {make_nocache $var} did fail when variable value did contain '\' https://github.com/smarty-php/smarty/issues/305
2016-10-19 19:35:58 +02:00
uwetews
f3e0e01266
- bugfix {include} with template names including variable or constants could fail after bugfix from
...
28.09.2016 https://github.com/smarty-php/smarty/issues/302
2016-10-12 01:02:54 +02:00
uwetews
3c07a28434
- optimization move runtime extension for template functions into Smarty objects
2016-10-08 06:07:14 +02:00
uwetews
caceefc300
use absolute path normalizaion
2016-09-30 04:10:25 +02:00
uwetews
80af6ea2b5
- improvement new Smarty::$extends_recursion property to disable execution of {extends} in templates called by extends resource
...
https://github.com/smarty-php/smarty/issues/296
2016-09-30 02:30:39 +02:00
uwetews
68ab01dc9e
- improvement new Smarty::$extends_recursion property to disable execution of {extends} in templates called by extends resource
...
https://github.com/smarty-php/smarty/issues/296
2016-09-29 04:26:44 +02:00
uwetews
4de72f1acd
- improvement new Smarty::$extends_recursion property to disable execution of {extends} in templates called by extends resource
...
https://github.com/smarty-php/smarty/issues/296
2016-09-29 04:22:20 +02:00
uwetews
5b508b7bf3
- bugfix nocache hash was not removed for <?xml ?> tags in subtemplates https://github.com/smarty-php/smarty/issues/300
2016-09-28 23:39:05 +02:00
uwetews
998c778948
- bugfix the generated code for calling a subtemplate must pass the template resource name in single quotes https://github.com/smarty-php/smarty/issues/299
2016-09-28 04:59:51 +02:00
uwetews
3f0d519daf
- bugfix when Smarty does use an internally cached template object on Smarty::fetch() calls
...
the template and config variables must be cleared https://github.com/smarty-php/smarty/issues/297
2016-09-27 23:19:56 +02:00
Elan Ruusamäe
beeec36bb8
exclude files from git export
...
add files to be excluded from git export
visible when used via composer --prefer-dist
2016-09-24 11:03:02 +03:00
uwetews
efa18457f2
- temporary fix for https://github.com/smarty-php/smarty/issues/293 main reason still under investigation
2016-09-20 16:06:01 +02:00
uwetews
ec3a00e5ab
- improvement new tags {block_parent} {block_child} in template inheritance
2016-09-20 16:00:28 +02:00
uwetews
b8acd7ea17
- bugfix some $smarty special template variables are no longer accessed as real variable.
...
using them on calls like {if isset($smarty.foo)} or {if empty($smarty.foo)} will fail
http://www.smarty.net/forums/viewtopic.php?t=26222
2016-09-20 14:21:39 +02:00
uwetews
d9a6938473
- cleanup convert cache resource file method clear into runtime extension
2016-09-19 16:39:19 +02:00
uwetews
a9e7e8881e
- optimization clear compiled and cached folder completely on detected version change
2016-09-19 14:59:49 +02:00
uwetews
8835408e0d
- improvement make Smarty::clearCompiledTemplate() on custom resource independent from changes of templateId computation
2016-09-15 09:14:56 +02:00
uwetews
cd28347130
- bugfix assigning a variable in if condition by function like {if $value = array_shift($array)} the function got called twice https://github.com/smarty-php/smarty/issues/291
2016-09-15 08:36:12 +02:00
uwetews
f95b81a6f9
- bugfix calling $smarty->isCached() on a not existing cache file with $smarty->cache_locking = true; could cause a 10 second delay http://www.smarty.net/forums/viewtopic.php?t=26282
2016-09-15 06:43:36 +02:00
uwetews
58b6472d4f
- bugfix function plugins called with assign attribute like {foo assign='bar'} did not output returned content because
...
because assumption was made that it was assigned to a variable https://github.com/smarty-php/smarty/issues/292
2016-09-15 03:23:04 +02:00
uwetews
424dca6d24
- bugfix assigning a variable in if condition by function like {if $value = array_shift($array)} the function got called twice https://github.com/smarty-php/smarty/issues/291
2016-09-15 02:56:34 +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
e62b40c421
- improvement {math} misleading E_USER_WARNING messages when parameter value = null https://github.com/smarty-php/smarty/issues/288
2016-09-11 00:23:37 +02:00
uwetews
7e230713c6
- improvement {math} misleading E_NOTICE messages when parameter value = null https://github.com/smarty-php/smarty/issues/288 (reverted from commit 810881c76e)
2016-09-11 00:21:45 +02:00
uwetews
810881c76e
- improvement {math} misleading E_NOTICE messages when parameter value = null https://github.com/smarty-php/smarty/issues/288
2016-09-11 00:13:29 +02:00
uwetews
62099617ae
- improvement {foreach} observe {break n} and {continue n} nesting levels when restoring saved $item and $key variables
2016-09-09 22:54:42 +02:00
uwetews
0e942e4821
- bugfix {foreach} must keep the @properties when restoring a saved $item variable as the properties might be used outside {foreach} https://github.com/smarty-php/smarty/issues/267
2016-09-09 19:45:08 +02:00
uwetews
21aa211ddb
- bugfix/optimization {foreach} did not execute the {foreachelse} when iterating empty objects https://github.com/smarty-php/smarty/pull/287
2016-09-09 18:43:37 +02:00
uwetews
124b333da2
- bugfix implement wrapper for removed method getConfigVariable() https://github.com/smarty-php/smarty/issues/286
2016-09-08 22:28:06 +02:00
uwetews
bfc1ef8885
- bugfix {capture}{/capture} did add in 3.1.30 unintended additional blank lines https://github.com/smarty-php/smarty/issues/268
2016-09-07 17:43:10 +02:00
uwetews
0429272370
- bugfix when {foreach} was looping over an object the total property like {$item@total} did always return 1 https://github.com/smarty-php/smarty/issues/281
2016-09-07 00:41:31 +02:00
uwetews
e5bbc052b1
- bugfix uppercase TRUE, FALSE and NULL did not work when security was enabled https://github.com/smarty-php/smarty/issues/282
2016-09-07 00:15:44 +02:00
uwetews
e82f966682
- bugfix using nocache like attribute with value true like {plugin nocache=true} did not work https://github.com/smarty-php/smarty/issues/285
2016-09-07 00:06:17 +02:00
uwetews
51e0d5cd40
- performance require_once should be called only once for shared plugins https://github.com/smarty-php/smarty/issues/280
2016-09-06 04:26:46 +02:00
uwetews
e1d27d68d7
- performance require_once should be called only once for shared plugins https://github.com/smarty-php/smarty/issues/280
2016-09-02 01:08:50 +02:00
uwetews
5580857d9b
- bugfix change of 23.08.2016 failed on linux when use_include_path = true
2016-08-26 05:54:11 +02:00
uwetews
2003020df9
- bugfix remove constant DS as shortcut for DIRECTORY_SEPARATOR as the user may have defined it to something else https://github.com/smarty-php/smarty/issues/277
2016-08-23 08:03:39 +02:00
uwetews
be39cc0121
- bugfix {make_nocache} failed when using composer autoloader https://github.com/smarty-php/smarty/issues/275
2016-08-20 15:58:12 +02:00
uwetews
c39abdf83e
- bugfix {config_load ... scope="global"} shall not throw an arror but fallback to scope="smarty" https://github.com/smarty-php/smarty/issues/274
2016-08-20 14:18:43 +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
1b6d2a9375
- bugfix Class 'Smarty_Internal_Runtime_ValidateCompiled' not found when upgrading from some older Smarty versions with existing
...
compiled or cached template files https://github.com/smarty-php/smarty/issues/269
2016-08-14 02:38:55 +02:00
uwetews
fee77dbfb8
- bugfix $smarty_>debugging = true; did E_NOTICE messages when {eval} tag was used https://github.com/smarty-php/smarty/issues/266
2016-08-14 01:12:37 +02:00
uwetews
7f932e7ac4
Prepare 3.1.31-dev
2016-08-07 20:57:11 +02:00
uwetews
ed2b7f1146
Release 3.1.30
2016-08-07 20:46:49 +02:00
uwetews
0cc1577b1b
Update travis for 3.1.30 test
2016-08-07 20:35:44 +02:00
uwetews
001f16aa0a
update error message
2016-08-07 16:08:10 +02:00
uwetews
761e516a32
- bugfix update of 04.08.2016 was incomplete
2016-08-07 15:31:01 +02:00
uwetews
25ad0b3b5a
- updated error checking at template and config default handler
2016-08-05 21:29:15 +02:00
uwetews
04301645d6
- bugfix compiling of templates failed when the Smarty delimiter did contain '/' https://github.com/smarty-php/smarty/issues/264
2016-08-05 01:00:51 +02:00
uwetews
e96a218e8b
Merge pull request #263 from a-shpota/fix-method-define
...
Fix define method in registered objects
2016-08-04 23:11:59 +02:00
uwetews
ffa270c395
04.08.2015
...
- improvement move template function source parameter into extension
2016-08-04 23:10:26 +02:00
Andrey Shpota
a3c1a152ca
fix define method in registered objects
2016-08-04 12:28:19 +03:00
uwetews
335f199cbc
- optimization unneeded loading of compiled resource
2016-07-26 04:00:15 +02:00
uwetews
f74a0d575a
- regression this->addPluginsDir('/abs/path/to/dir') adding absolute path without trailing '/' did fail https://github.com/smarty-php/smarty/issues/260
2016-07-24 20:31:27 +02:00
uwetews
eb2d9d4e6d
- improvement remove double funtion declaration in plugin shared.escape_special_cars.php https://github.com/smarty-php/smarty/issues/229
2016-07-23 22:37:17 +02:00
uwetews
2ba2f6e2e7
- bugfix setTemplateDir('/') and setTemplateDir('') did create wrong absolute filepath https://github.com/smarty-php/smarty/issues/245
...
- optimization of filepath normalization
2016-07-23 22:21:14 +02:00
uwetews
6d7d36d9a6
Fx changelog text for - bugfix {match} shell injection vulnerability patch provided by Tim Weber
2016-07-19 20:22:10 +02:00
uwetews
50068ca52a
- bugfix {match} shell injection vulnerability patch provided by Tim Weber
2016-07-19 20:17:47 +02:00
uwetews
f39e61762c
- bugfix multiple {include} with relative filepath within {block}{/block} could fail https://github.com/smarty-php/smarty/issues/246
2016-07-19 03:37:01 +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
d854219696
- bugfix avoid opcache_invalidate to result in ErrorException when opcache.restrict_api is not empty https://github.com/smarty-php/smarty/pull/244
2016-07-18 19:45:30 +02:00
uwetews
92945eaf12
- bugfix modifier on plugins like {plugin|modifier ... } did fail when the plugin does return an array https://github.com/smarty-php/smarty/issues/228
2016-07-18 17:57:50 +02:00
uwetews
79a4fdcd52
- bugfix {foreach} if key variable and item@key attribute have been used both the key variable was not updated https://github.com/smarty-php/smarty/issues/254
2016-07-18 05:27:46 +02:00
uwetews
c666ec9a34
- bugfix wrong parameter on compileAllTemplates() and compileAllConfig() https://github.com/smarty-php/smarty/issues/231
2016-07-14 20:32:41 +02:00
uwetews
e5eebc3cc2
- bugfix wrong parameter on compileAllTemplates() https://github.com/smarty-php/smarty/issues/231
2016-07-13 01:49:38 +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
31f6afd16e
- update testInstall() https://github.com/smarty-php/smarty/issues/248https://github.com/smarty-php/smarty/issues/248
2016-07-13 00:26:17 +02:00
uwetews
353ee1a490
- bugfix PHP 7 compatibility on registered compiler plugins https://github.com/smarty-php/smarty/issues/241
2016-07-13 00:12:58 +02:00
uwetews
02f95184ab
- bugfix enableSecurity() must init cache flags https://github.com/smarty-php/smarty/issues/247
2016-07-12 02:30:14 +02:00
uwetews
b525d4d1d7
- bugfix {foreach} item variable must be created also on empty from array https://github.com/smarty-php/smarty/issues/238 and https://github.com/smarty-php/smarty/issues/239
2016-07-12 00:24:11 +02:00
uwetews
b46a9a8dbd
- bugfix/improvement of compileAlltemplates() follow symlinks in template folder (PHP >= 5.3.1) https://github.com/smarty-php/smarty/issues/224
...
clear internal cache and expension handler for each template to avoid possible conflicts https://github.com/smarty-php/smarty/issues/231
2016-05-28 03:33:32 +02:00
uwetews
778b0d920e
- bugfix/improvement of compileAlltemplates() follow symlinks in template folder (PHP >= 5.3.1) https://github.com/smarty-php/smarty/issues/224
...
clear internal cache and expension handler for each template to avoid possible conflicts https://github.com/smarty-php/smarty/issues/231
2016-05-27 22:22:57 +02:00
uwetews
dccfc6c2f5
- broken PHP 5.3 and 5.4 compatibility
2016-05-16 18:17:58 +02:00
uwetews
0fcac38c70
- optimization {foreach} compiler and processing
2016-05-16 17:57:06 +02:00
uwetews
a62557e817
- broken PHP 5.3 and 5.4 compatibility
2016-05-15 11:51:46 +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
608064e5f2
-bugfix Only variables should be assigned by reference https://github.com/smarty-php/smarty/issues/227
2016-05-07 13:46:37 +02:00
uwetews
f02f943021
Merge pull request #188 from tinogo/master
...
Minor optimization for Smarty_Internal_Data::assign()
2016-05-03 21:55:46 +02:00
uwetews
ecdd33d334
- bugfix same relative filepath at {include} called from template in different folders could display wrong sub-template
2016-05-02 04:28:09 +02:00
uwetews
971058fc61
- enhancement {block} tag names can now be variable https://github.com/smarty-php/smarty/issues/221
2016-05-02 00:58:17 +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
2cb03512f7
- bugfix {strip} remove space on linebreak between html tags https://github.com/smarty-php/smarty/issues/213
2016-04-29 00:24:47 +02:00
uwetews
116854cee2
Merge pull request #222 from glensc/patch-1
...
Update NEW_FEATURES.txt
2016-04-24 15:18:03 +02:00
Elan Ruusamäe
608dbd0f7f
whitespace cleanup
2016-04-24 15:21:08 +03:00
Elan Ruusamäe
af1b632a11
Update NEW_FEATURES.txt
2016-04-24 15:19:30 +03: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
d3b7a344aa
- bugfix the default template handler must calculate the source uid https://github.com/smarty-php/smarty/issues/205
2016-04-14 21:24:26 +02:00
uwetews
9839de9cc4
- bugfix special variable {$smarty.capture.name} was not case sensitive on name https://github.com/smarty-php/smarty/issues/210
2016-04-14 21:12:34 +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
a36d9bc809
Fixing wrong date
2016-03-27 18:53:53 +02:00
uwetews
2dac1729c2
- bugfix change of 11.03.2014 cause again {capture} data could not been seen in other templates with {$smarty.capture.name} https://github.com/smarty-php/smarty/issues/153
2016-03-27 18:44:19 +02:00
uwetews
ff6a8521bb
- improvement $smarty->clearCompiledTemplate() should return on recompiled or uncompiled resources
2016-03-11 03:36:43 +01:00
uwetews
af71fda639
- optimization of capture and security handling
2016-03-11 02:55:55 +01:00
uwetews
62bf9eeddc
- optimization of resource processing
2016-03-11 01:07:26 +01:00
uwetews
880967aff3
- optimization of resource processing
2016-03-11 01:05:26 +01:00
uwetews
4815464b9c
- optimization of resource processing
2016-03-10 22:22:46 +01:00
uwetews
00be382842
fix function name case
2016-03-09 04:03:37 +01:00
uwetews
5c1907052e
fix class name case
2016-03-09 04:01:47 +01:00
uwetews
23acdf722c
fix passed parameter
2016-03-09 03:53:12 +01:00
uwetews
43c5aabda5
update {capture} compiler tag nesting code
2016-03-09 03:13:15 +01:00
uwetews
f63ceb1c05
- remove access to removed an not needed property
2016-03-09 02:44:38 +01:00
uwetews
91b4992ab8
- 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
missed commit
2016-03-09 02:11:06 +01:00
uwetews
e066488f8b
- bugfix correct Autoloader update of 2.3.2014 https://github.com/smarty-php/smarty/issues/199
2016-03-09 01:44:10 +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
d88168d1b6
- bugfix change from 01.03.2016 will cause $smarty->isCached(..) failure if called multiple time for same template
...
(forum topic 25935) related to 825aa26079
2016-03-04 17:54:10 +01:00
uwetews
4f5aeeb2b6
- revert autoloader optimizations because of unexplainable warning when using plugins https://github.com/smarty-php/smarty/issues/199
2016-03-02 18:17:22 +01:00
uwetews
b99bc7b8da
- 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:55:28 +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
0e5ea2a467
- bugfix instanceof expression in template code must be treated as value https://github.com/smarty-php/smarty/issues/191
2016-02-26 00:50:15 +01:00
uwetews
a5b465e2c6
- optimization of _realpath
2016-02-25 23:36:53 +01:00
uwetews
8df91e9d0d
- bugfix wrong _realpath with 4 or more parent-directories https://github.com/smarty-php/smarty/issues/190
2016-02-25 02:53:55 +01:00
uwetews
b39f561083
update https://github.com/smarty-php/smarty/issues/179
2016-02-20 22:00:19 +01:00
uwetews
4530a8232f
- new feature/bugfix {foreach}{section} add 'properties' attribute to force compilation of loop properties
...
see NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/189
2016-02-20 21:45:21 +01:00
uwetews
b832cd36a5
- bugfix {strip} must keep space between hmtl tags. Broken by changes of 10.2.2016 https://github.com/smarty-php/smarty/issues/184
...
- new feature/bugfix {foreach}{section} new attribute 'property' to force compilation of loop property
read NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/189 (reverted from commit 4958deaf09 )
2016-02-20 21:33:31 +01:00
uwetews
4958deaf09
- bugfix {strip} must keep space between hmtl tags. Broken by changes of 10.2.2016 https://github.com/smarty-php/smarty/issues/184
...
- new feature/bugfix {foreach}{section} new attribute 'property' to force compilation of loop property
read NEW_FEATURES.txt https://github.com/smarty-php/smarty/issues/189
2016-02-20 21:13:38 +01:00
uwetews
a884855818
- bugfix {strip} must keep space between hmtl tags. Broken by changes of 10.2.2016 https://github.com/smarty-php/smarty/issues/184
2016-02-20 17:24:48 +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
Tino Goratsch
8dc8fc23c8
Optimization for Smarty_Internal_Data::assign()
...
Removed the extra if block, when an array has been given as the $tpl_var argument, because in the else block there is already a "not empty check".
2016-02-19 09:44:07 +01:00
uwetews
0735ff9605
- optimization make compiler tag object cache static for higher compilation speed
2016-02-14 20:57:21 +01:00
uwetews
30328d318c
- optimization of tag attribute compiling
2016-02-14 19:58:55 +01:00
uwetews
7e36f98c1d
- bugfix using extendsall as default resource and {include} inside {block} tags could produce unexpected results https://github.com/smarty-php/smarty/issues/183
2016-02-14 14:33:59 +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
3756588858
- improvement added KnockoutJS comments to trimwhitespace outputfilter https://github.com/smarty-php/smarty/issues/82
...
https://github.com/smarty-php/smarty/pull/181
2016-02-11 22:05:45 +01:00
uwetews
00f07690e7
update of the inheritance release notes
2016-02-10 21:32:52 +01:00
uwetews
9c37394ccb
- bugfix other {strip} error with output tags between hmtl https://github.com/smarty-php/smarty/issues/180
2016-02-10 21:12:35 +01:00
uwetews
a8d3373f26
- improvement because of ambiguities the inline constant support has been removed from the $foo.bar syntax https://github.com/smarty-php/smarty/issues/149
2016-02-10 04:06:05 +01:00
uwetews
b8fb986327
- bugfix {strip} must keep space on output creating smarty tags within html tags https://github.com/smarty-php/smarty/issues/177 other update for BC
2016-02-10 03:49:09 +01:00
uwetews
47237eb84f
- bugfix wrong precedence on special if conditions like '$foo is ... by $bar' could cause wrong code https://github.com/smarty-php/smarty/issues/178
2016-02-10 03:19:25 +01:00
uwetews
417088bdb7
- bugfix {strip} must keep space on output creating smarty tags within html tags https://github.com/smarty-php/smarty/issues/177
2016-02-10 03:17:32 +01:00
uwetews
08db1a4a3f
- bugfix {strip} must keep space on output creating smarty tags within html tags https://github.com/smarty-php/smarty/issues/177
2016-02-10 01:12:57 +01:00
uwetews
2f62b99173
- update/bugfix scope attribute handling reworked. Read the newfeatures.txt file
2016-02-09 23:27:07 +01:00
uwetews
37e6d26b23
- move some code from parser into compiler
2016-02-09 04:48:08 +01:00
uwetews
b04486a091
- reformat all code for unique style
2016-02-09 01:27:15 +01:00
uwetews
c59ca44b9f
- move some code from parser into compiler
2016-02-09 01:15:12 +01:00
uwetews
c1f34b1314
- improvement internal compiler changes
2016-02-05 17:41:11 +01:00
uwetews
85eedd0c11
- bugfix {foreach} compilation failed when $smarty->merge_compiled_includes = true and pre-filters are used.
...
https://github.com/smarty-php/smarty/issues/172
2016-02-01 00:46:15 +01:00
uwetews
e1bf16a504
- bugfix implement replacement code for _tag_stack property https://github.com/smarty-php/smarty/issues/151
2016-01-29 01:21:00 +01:00
uwetews
addd2a74e2
Merge pull request #156 from glensc/patch-1
...
Update change_log.txt
2016-01-28 05:49:12 +01:00
uwetews
a687a127c4
- bugfix if fetch('foo.tpl') is called on a template object the $parent parameter should default to the calling template object https://github.com/smarty-php/smarty/issues/152
2016-01-28 05:34:41 +01:00
uwetews
193163be29
- bugfix allow windows network filepath or wrapper (forum topic 25876) https://github.com/smarty-php/smarty/issues/170
2016-01-28 03:51:54 +01:00
uwetews
41684818d9
- bugfix {capture} data could not been seen in other templates with {$smarty.capture.name} https://github.com/smarty-php/smarty/issues/153
2016-01-27 05:18:29 +01:00
uwetews
f59b00c6dd
- bugfix {extends} with relative file path did not work https://github.com/smarty-php/smarty/issues/154
...
https://github.com/smarty-php/smarty/issues/158
2016-01-27 04:51:02 +01:00
uwetews
04d9c5cc34
- bugfix output filters did not observe nocache code flag https://github.com/smarty-php/smarty/issues/160
2016-01-27 00:35:04 +01:00
uwetews
71f71e6262
- bugfix string resource could inject code at {block} or inline subtemplates through PHP comments https://github.com/smarty-php/smarty/issues/157
2016-01-26 22:22:20 +01:00
uwetews
867a2f3165
- bugfix string resource could inject code at {block} or inline subtemplates through PHP comments https://github.com/smarty-php/smarty/issues/157 (reverted from commit 2850cce19f)
2016-01-26 21:49:56 +01:00
uwetews
2850cce19f
- bugfix string resource could inject code at {block} or inline subtemplates through PHP comments https://github.com/smarty-php/smarty/issues/157
2016-01-26 21:34:11 +01:00
uwetews
0b31052418
- bugfix {$smarty.section.customer.loop} did throw compiler error https://github.com/smarty-php/smarty/issues/161
...
update of yesterdays fix
2016-01-26 21:25:29 +01:00
uwetews
8a0c783b71
- revert bugfix compiling {section} did create warning
2016-01-26 20:49:46 +01:00
uwetews
ccbc4303ed
- bugfix {$smarty.section.customer.loop} did throw compiler error https://github.com/smarty-php/smarty/issues/161
2016-01-26 03:01:33 +01:00
uwetews
b58e1cdc5a
- bugfix compiling {section} did create warning
2016-01-26 02:57:21 +01:00
uwetews
8b0e0a3df6
- improvement observe Smarty::$_CHARSET in debugging console https://github.com/smarty-php/smarty/issues/169
2016-01-26 00:15:39 +01:00
Elan Ruusamäe
5cf9824cdf
Update change_log.txt
...
typo fixes
2016-01-06 23:40:13 +02:00
uwetews
dd0f4c7c36
- improvement runtime checks if registered block plugins are callabel
2016-01-02 17:58:58 +01:00
uwetews
418492b40b
- optimize block plugin compiler
2016-01-02 11:27:44 +01:00
uwetews
59343127f7
- update scope handling
2016-01-02 02:47:32 +01:00
uwetews
bdf9f41da8
- remove Smarty::$resource_cache_mode property
2016-01-01 18:28:27 +01:00
uwetews
8e9cb7586f
add memcache tests to travis
2015-12-31 06:45:19 +01:00
uwetews
d381c47ba8
add memcache tests to travis
2015-12-31 06:36:19 +01:00
uwetews
ea866a5a92
add memcache tests to travis
2015-12-31 06:33:47 +01:00
uwetews
04afbdb18d
disable 5.2
2015-12-31 06:07:18 +01:00
uwetews
0dc576bfc0
enable 5.2
2015-12-31 06:03:56 +01:00
uwetews
d32badfdee
disable 5.2
2015-12-31 05:45:24 +01:00
uwetews
b935ae803b
enable 5.2
2015-12-31 05:20:50 +01:00
uwetews
fe85dd4a3b
disable 5.2
2015-12-31 05:08:25 +01:00
uwetews
77b6a9e8e1
Add travis test for php 5.2
2015-12-31 04:55:59 +01:00
uwetews
633a6285b0
Test if class Memcached exists
2015-12-31 03:44:42 +01:00
uwetews
239fed38b9
enable mysql and memcache tests on travis
2015-12-31 02:49:45 +01:00
uwetews
c60cdb3e64
- optimization of {assign}, {if} and {while} compiled code
2015-12-31 02:20:47 +01:00
uwetews
7eb56ac5e3
- bugfix plugin names starting with "php" did not compile https://github.com/smarty-php/smarty/issues/147
2015-12-30 22:11:15 +01:00
uwetews
34062d45b7
- bugfix Smarty::error_reporting was not observed when display() or fetch() was called on template objects https://github.com/smarty-php/smarty/issues/145
2015-12-29 16:54:15 +01:00
uwetews
59b3a53089
remove allowed failure on hhvm
2015-12-28 06:00:03 +01:00
uwetews
afec7564d6
- optimization of {foreach} code size and processing
2015-12-28 00:58:22 +01:00
uwetews
c8c82a292a
- PHPdoc updates
2015-12-27 08:12:46 +01:00
uwetews
c2f05e8c3c
- code fixes
2015-12-27 08:11:31 +01:00
uwetews
94cc120439
update SmartyBC
2015-12-27 07:19:04 +01:00
uwetews
b0691dd056
- update external methods
2015-12-27 07:18:35 +01:00
uwetews
4dd8b0bf73
new _clearTemplateCache() method
2015-12-27 05:43:11 +01:00
uwetews
ca48e93f00
force opcache invalidation
2015-12-27 05:42:30 +01:00
uwetews
1ebaac314c
remove obsolete code
2015-12-27 05:37:50 +01:00
uwetews
dc6da4384b
- improve inheritance code
2015-12-27 04:02:21 +01:00
uwetews
7e7591f6c0
new _clearTemplateCache() method
2015-12-27 03:28:26 +01:00
uwetews
fbf544286a
- new feature If ACP is enabled force an apc_compile_file() when compiled or cached template was updated
2015-12-25 10:29:29 +01:00
uwetews
613e66c257
- optimization replace hhvm extension by inline code
2015-12-25 10:02:10 +01:00
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
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
Elan Ruusamäe
ca12046179
typos here too
2015-12-14 23:33:42 +02:00
Elan Ruusamäe
362af770fe
one more typo fix
...
altho not sure where the quote should be here
2015-12-14 23:31:40 +02:00
Elan Ruusamäe
b40684c5d5
more typos
2015-12-14 23:30:45 +02:00
Elan Ruusamäe
5c71e35d4f
Update NEW_FEATURES.txt
...
typos
2015-12-14 23:29:07 +02:00
uwetews
c4e6ad6c35
- bugfix multiple calls of {section} with same name droped E_NOTICE error https://github.com/smarty-php/smarty/issues/118
2015-12-14 00:18:27 +01:00
uwetews
f8ec3ecaef
- bugfix {$smarty.config.foo} broken in 3.1.28 https://github.com/smarty-php/smarty/issues/120
2015-12-14 00:04:31 +01:00
uwetews
bc3ea2c878
Prepare .1.29-dev
2015-12-13 15:41:00 +01:00
uwetews
d234f79203
Prepare release 3.1.28
2015-12-13 15:19:58 +01:00
uwetews
15e3d10267
Fix typos
2015-12-13 15:16:20 +01:00
uwetews
2cab5c74ff
fix link to documentation
2015-12-13 14:50:11 +01:00
uwetews
dca9cd887e
Merge pull request #117 from yonexyonex/fix_typo
...
fix typo in template error message
2015-12-13 14:41:20 +01:00
yonex
fc999d81be
fix typo in template error message
2015-12-13 22:35:22 +09: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
6dc9196c35
- bugfix {foreach} and {section} with uppercase characters in name attribute did not work (forum topic 25819)
2015-12-13 06:30:08 +01:00
uwetews
71e364e4b2
- bugix Smarty did fail under PHP 7.0.0 with use_include_path = true;
2015-12-09 02:16:48 +01:00
uwetews
e783f61132
- bugix Smarty did fail under PHP 7.0.0 with use_include_path = true;
2015-12-09 02:03:56 +01:00
uwetews
260d3e3e46
-bugfix {strip} should exclude some html tags from stripping, related to fix for https://github.com/smarty-php/smarty/issues/111
2015-12-09 01:35:17 +01:00
uwetews
ee743d2729
update of SMARTY_VERSION
2015-12-08 23:45:04 +01:00
uwetews
29e2eb0bca
- bugfix internal template function data got stored in wrong compiled file https://github.com/smarty-php/smarty/issues/114
2015-12-08 23:41:42 +01:00
uwetews
be8340bef2
- remove no longer needed file and updated testinstall
2015-12-08 23:41:01 +01:00
uwetews
4839d0e0cc
-bugfix {strip} should insert a single space https://github.com/smarty-php/smarty/issues/111
2015-12-05 17:28:05 +01:00
uwetews
54fe432730
Merge pull request #109 from KLVTZ/master
...
Refactor readme: use github markdown parser
2015-12-04 04:11:16 +01:00
Justin Page
a061365844
Provide new line to separate highlights
2015-11-28 16:51:14 -08:00
Justin Page
0403c876ed
Use quotes to highlight features
2015-11-28 16:48:27 -08:00
Justin Page
2bc86a00f1
Wrap JSON examples in language specific code wrap
...
This allows Github or any repo system to parse and display correctly code
examples by proper wrappers.
2015-11-28 16:45:46 -08:00
uwetews
e0fc310b6e
-bugfix a left delimter like '[%' did fail on [%$var_[%$variable%]%] (forum topic 25798)
2015-11-25 21:19:23 +01:00
uwetews
5ca1cd485f
- bugfix {include} with variable file name like {include file="foo_$bar.tpl"} did fail in 3.1.28-dev https://github.com/smarty-php/smarty/issues/102
2015-11-02 23:04:52 +01:00
uwetews
aa730800bd
- bugfix {include} with variable file name like {include file="foo_$bar.tpl"} did fail in 3.1.28-dev https://github.com/smarty-php/smarty/issues/102
2015-11-02 18:06:42 +01:00
uwetews
cc3f69a2a3
- update config file processing
2015-11-01 02:58:27 +01:00
uwetews
8a78038181
update PHPdoc
2015-11-01 02:57:50 +01:00
uwetews
72258bc28d
add test for valid scope name
2015-11-01 02:02:27 +01:00
uwetews
9496df8e1f
- bugfix add missing $trusted_dir property to SmartyBC class (forum topic 25751)
2015-10-31 23:13:12 +01:00
uwetews
eedfdff62f
- improve template scope handling
2015-10-29 22:33:00 +01:00
uwetews
55f38125a4
- improve template scope handling
2015-10-29 22:17:35 +01:00
uwetews
a0f583078d
- minor optimizations
2015-10-29 21:41:21 +01:00
uwetews
862b23fe52
- update testinstall()
2015-10-26 01:27:06 +01:00
uwetews
6e3d94c13e
- more optimizations of template processing
2015-10-25 05:59:45 +01:00
uwetews
2b9dcb22b5
- more optimizations of template processing
2015-10-25 05:03:23 +01:00
uwetews
42e722926a
- bugfix Error when using {include} within {capture} https://github.com/smarty-php/smarty/issues/100
2015-10-25 04:53:58 +01:00
uwetews
1a51c1c17b
- more optimizations of template processing
2015-10-25 04:53:19 +01:00
uwetews
50760c794c
- more optimizations of template processing
2015-10-24 22:43:19 +02:00
uwetews
4ea4d1ff41
- improve autoloader speed
2015-10-24 05:20:09 +02:00
uwetews
abdb335b26
- fix comment
2015-10-24 05:17:17 +02:00
uwetews
b7fb490cb1
- improve compiled code
2015-10-24 05:16:54 +02:00
uwetews
891495f849
- improve recovery from ivalid compiled template code
2015-10-24 05:14:47 +02:00
uwetews
0ea1360d65
- new extension handler to load functions when called
2015-10-24 05:12:10 +02:00
uwetews
888014b908
- new extension handler to load functions when called
2015-10-24 05:02:24 +02:00
uwetews
eec7639c9c
- fix template scope processing
2015-10-24 04:45:09 +02:00
uwetews
b26ba9ce52
update travis
2015-10-21 04:32:27 +02:00
uwetews
e25a8ab661
- move some code into runtime extensions
2015-10-21 03:53:25 +02:00
uwetews
ad65c850f7
- move some code into runtime extensions
2015-10-21 02:02:42 +02:00
uwetews
4e1d6707fe
- update code generated by template function call handler
2015-10-18 22:12:16 +02:00
uwetews
0e28150b4a
- fix compiled code for new {block} assign attribute
2015-10-18 11:35:08 +02:00
uwetews
bd7d10e09d
Update travis
2015-10-18 05:14:27 +02:00
uwetews
bf6910ee21
- bugfix under HHVM temporary cache file must only be created when caches template was updated
2015-10-18 05:08:03 +02:00
uwetews
4776491a7f
- bugfix under HHVM temporary cache file must only be created when caches template was updated
2015-10-18 04:58:53 +02:00
uwetews
c99fe144f6
- speed and size optimizations
2015-10-18 04:54:09 +02:00
uwetews
8dc2a0af7c
- rework of template inheritance
2015-10-18 04:46:05 +02:00
uwetews
ca9ccfc919
- optimize filepath normalization
2015-10-18 04:40:45 +02:00
uwetews
757d66a731
parser: add support for template prefix and postfix code
2015-10-18 02:02:43 +02:00
uwetews
5cde3a8799
compiler: add support for post compile callbacks
2015-10-18 02:02:42 +02:00
uwetews
8dc777effd
Merge pull request #96 from glensc/patch-1
...
do not load "Autoloader" from include path
2015-10-18 02:00:49 +02:00
Elan Ruusamäe
87a04b2ef6
do not load "Autoloader" from include path
...
loading it from include path (without abs path) can be dangerous, can load some other project's Autoloader.php instead the right one.
2015-10-13 10:32:04 +03:00
uwetews
788566cf70
- bugfix {if $foo instanceof $bar} failed to compile if 2nd value is a variable https://github.com/smarty-php/smarty/issues/92 (reverted from commit 428e667453)
2015-10-08 19:53:25 +02:00
uwetews
428e667453
- bugfix {if $foo instanceof $bar} failed to compile if 2nd value is a variable https://github.com/smarty-php/smarty/issues/92
2015-10-08 19:47:43 +02:00
uwetews
7f0a2f788f
Merge pull request #95 from dshepherd/patch-1
...
Update README with correct plugin method signature
2015-10-08 19:42:03 +02:00
Dan Shepherd
d45652afe2
Update README with correct plugin method signature
...
The existing README states that 3 params are passed for plugins (params, smarty, template) but the smarty object was actually removed long ago. This update correct this.
2015-10-08 13:50:46 +01:00
uwetews
64464e8fbe
- bugfix {if $foo instanceof $bar} failed to compile if 2nd value is a variable https://github.com/smarty-php/smarty/issues/92
2015-09-19 19:55:14 +02:00
uwetews
d5ca4518be
- bugfix {foreach} first attribute was not correctly reset since commit 05a8fa2 of 02.08.2015 https://github.com/smarty-php/smarty/issues/90
2015-09-17 21:01:48 +02:00
uwetews
e1e8d2feda
- update compiler by moving no longer needed properties, code optimizations and other
2015-09-16 16:23:38 +02:00
uwetews
5a9500c2d9
- remove not needed compiled code whan caching is disabled
2015-09-15 01:25:40 +02:00
uwetews
83a68c99c8
- update template inheritance processing
2015-09-15 00:44:34 +02:00
uwetews
fb9f2c9267
fix
2015-09-15 00:21:28 +02:00
uwetews
ceb9afbb5d
- bugfix unintended multiple debug windows (forum topic 25699)
2015-09-15 00:18:17 +02:00
uwetews
0eb7f4b8d1
- improvement invalidate OPCACHE for cleared compiled and cached template files (forum topic 25557)
2015-09-15 00:15:12 +02:00
uwetews
6ff3505a37
- move code of {call} processing back into Smarty_Internal_Template class
2015-09-14 23:50:20 +02:00
uwetews
8d734a9d52
- update template inheritance processing
2015-09-14 23:46:17 +02:00
uwetews
71c1b32c51
- optimize internal subtemplate handling
2015-09-14 23:39:04 +02:00
uwetews
5cbedc87f0
- optimize internal subtemplate handling
2015-09-14 23:16:13 +02:00
uwetews
df0824675a
- optimize internal subtemplate handling
2015-09-14 23:12:03 +02:00
uwetews
56a884a428
- optimize autoloader
2015-09-14 23:02:59 +02:00
uwetews
bfcffb009a
- remove unneeded code and properties, minor fixes
2015-09-01 02:52:09 +02:00
uwetews
ca0b3f02b9
add some cope needed for PHPunit tests
2015-09-01 02:35:51 +02:00
uwetews
2e0b834b59
remove unneeded realpath call
2015-09-01 02:34:59 +02:00
uwetews
d2fa4083f7
- move template function code into runtime extension
2015-09-01 02:30:56 +02:00
uwetews
2ba7109043
- move subtemplate code into runtime extension and optimize for size and speed
2015-09-01 02:27:22 +02:00
uwetews
37e6529c7b
- improvement convert template inheritance into runtime processing
...
- bugfix {$smarty.block.parent} did always reference the root parent block https://github.com/smarty-php/smarty/issues/68
2015-09-01 02:10:15 +02:00
uwetews
620e52405b
- improvement convert template inheritance into runtime processing
...
- bugfix {$smarty.block.parent} did always reference the root parent block https://github.com/smarty-php/smarty/issues/68
2015-09-01 01:54:28 +02:00
uwetews
54d54e5000
hook for runtime extension loading
2015-09-01 00:33:10 +02:00
uwetews
0d46c17578
- rearrange internal cache
2015-08-29 14:37:59 +02:00
uwetews
31a7162fba
- remove double break
2015-08-27 19:26:49 +02:00
uwetews
3ba86e8d91
remove permission properties
2015-08-23 19:58:27 +02:00
uwetews
d67acf7e9a
revert removal of permission properties
2015-08-23 18:46:32 +02:00
uwetews
470cd186c4
major push of internal changes for size and speed optimizations
2015-08-23 17:23:09 +02:00
uwetews
0e4039f5c0
- bugfix compiling super globals like {$smarty.get.foo} did fail in the master branch https://github.com/smarty-php/smarty/issues/77
2015-08-23 16:59:34 +02:00
uwetews
9fd0b3086d
- remove redundant code
2015-08-23 13:53:03 +02:00
uwetews
9eb87ef5a2
- relocate properties for size optimization
2015-08-23 13:24:24 +02:00
uwetews
606b8e8669
- optimize use_include_path processing
2015-08-23 11:13:20 +02:00
uwetews
2c197a2ea6
- check if $includes entry does exist
2015-08-23 06:47:39 +02:00
uwetews
3382aab429
- fix output buffer handling
2015-08-23 06:46:03 +02:00
uwetews
0b9e46d6ed
- bugfix do not cache template object for config files
2015-08-23 05:36:20 +02:00
uwetews
c6ea69feb7
- bugfix uncompiled templates could not be cached after recent change
2015-08-23 05:35:13 +02:00
uwetews
3daf187fb1
- bugfix of unneeded instanceof conditions replacement
2015-08-23 05:33:04 +02:00
uwetews
189b2af115
- optimize invalidation of internal caches
2015-08-23 05:27:16 +02:00
uwetews
1ae11c26c0
- optimize Smarty::templateExists()
2015-08-23 05:15:05 +02:00
uwetews
fb83a888f3
varname changes
2015-08-23 02:03:25 +02:00
uwetews
e2f11126eb
fix PHPDoc
2015-08-23 02:00:25 +02:00
uwetews
a413a2a2e1
replace unneeded instanceof conditions
2015-08-23 01:50:05 +02:00
uwetews
6eed7732df
- remove properties with redundant content
2015-08-23 01:46:30 +02:00
uwetews
87985d1243
- move caching to Smarty::_cache
2015-08-23 01:39:18 +02:00
uwetews
6a26393099
- optimize rendering
2015-08-23 01:26:46 +02:00
uwetews
329cd6ec4d
- remove not really needed properties
2015-08-19 02:19:25 +02:00
uwetews
df541858de
- cache template object of {include} if same template is included several times
2015-08-19 01:22:27 +02:00
uwetews
7935b181fb
- optimize nocache hash processing
2015-08-19 01:18:25 +02:00
uwetews
8292a3581c
- use output buffers for better performance and less memory usage
2015-08-19 01:09:08 +02:00
uwetews
6087ac5de0
- convert debug console processing to object
2015-08-19 00:58:47 +02:00
uwetews
5f7b5a45ac
improve performance
2015-08-18 03:20:01 +02:00
uwetews
457a0486f5
- cache template object of {include} if same template is included several times
2015-08-18 02:55:53 +02:00
uwetews
e8252906ba
- make sure that property value is set
2015-08-17 22:27:41 +02:00
uwetews
6cbcdf4d7b
- load seldom used Smarty API methods dynamically to reduce memory footprint
2015-08-17 21:52:32 +02:00
uwetews
eb7aa8fe92
update template_id handling
2015-08-15 18:35:51 +02:00
uwetews
8a9b52e975
optimize $properties array
2015-08-15 18:32:27 +02:00
uwetews
9ad5e1eb1e
define missing properties
2015-08-15 18:25:06 +02:00
uwetews
af6f77a9e6
create raw compiled object to avoid checking for compiled file
2015-08-10 22:45:56 +02:00
uwetews
e63926088c
optimize compilation of merged subtemplates
2015-08-10 22:35:33 +02:00
uwetews
0260b525b8
introduce Smarty::$resource_cache_mode and cache template object of {include} inside loop
2015-08-10 21:57:06 +02:00
uwetews
5c9c57df7d
replace property array by object properties
2015-08-09 21:14:16 +02:00
uwetews
6bcdd0edbe
remove unused parameter
2015-08-09 20:56:18 +02:00
uwetews
dde6bc506b
remove unneeded method
2015-08-09 20:54:13 +02:00
uwetews
7d2e27ae2f
use parent_compiler object for storing required plugins
2015-08-09 20:53:32 +02:00
uwetews
3619b672f4
replace property array by object properties
2015-08-09 20:48:33 +02:00
uwetews
c08191d191
replace property array by object properties
2015-08-09 20:45:28 +02:00
uwetews
d16e2d3a15
replace property array by object properties
2015-08-09 20:43:04 +02:00
Uwe Tews
643e6784e8
- bugfix Smarty failed when compile_id did contain "|"
2015-08-06 21:42:20 +02:00
Uwe Tews
c5cf7884d5
- commit several internal improvements
2015-08-06 19:46:44 +02:00
Uwe Tews
ea6f848e04
fix properties
2015-08-06 19:42:40 +02:00
Uwe Tews
5d1ba7ca9c
restore template object state on exception, free lexer/parser resources
2015-08-06 19:40:37 +02:00
Uwe Tews
e402e2f893
no need to clone handler
2015-08-06 19:32:33 +02:00
Uwe Tews
de49865d22
optimize template object caching
2015-08-06 19:25:00 +02:00
Uwe Tews
16fc95ccf7
load source resource at template object creation
2015-08-06 19:16:41 +02:00
Uwe Tews
1ed4808bd9
check parent object type
2015-08-06 19:14:55 +02:00
Uwe Tews
5ca4f0484a
load source resource at template object creation
2015-08-06 19:12:24 +02:00
Uwe Tews
35c7e9767d
remove unneeded properties
2015-08-06 19:05:11 +02:00
Uwe Tews
8cffee8426
invalidate compiled resource cache
2015-08-06 19:02:30 +02:00
Uwe Tews
63a1e74811
- rewrite compileAll... utility methods
2015-08-06 01:29:36 +02:00
Uwe Tews
a7098432ba
Make declaration compatible with compile assign
2015-08-06 01:24:41 +02:00
Uwe Tews
e1cc514a68
- avoid possible circular object referances caused by parser/lexer objects
2015-08-06 01:19:11 +02:00
Uwe Tews
ca969fe663
fix autoloader optimization
2015-08-06 00:59:06 +02:00
Uwe Tews
8c5f20430d
optimize duplicate code
2015-08-06 00:57:36 +02:00
Uwe Tews
80ee385965
- improve getIncludePath() to return directory i
2015-08-03 22:32:09 +02:00
Uwe Tews
201ea13a33
- bugfix compileAllConfig() was broken since 3.1.22 because of the changes in config file processing
2015-08-03 21:39:30 +02:00
Uwe Tews
f2585a035c
- rework clear cache methods
2015-08-03 05:40:34 +02:00
Uwe Tews
147ba329b5
Fix generated code
2015-08-03 03:14:25 +02:00
Uwe Tews
7dfe853076
remove unneed dummy $smarty template variable
2015-08-02 21:12:33 +02:00
Uwe Tews
c95ff14434
- rework {capture} compiler
2015-08-02 20:57:46 +02:00
Uwe Tews
e205cb7a89
- optimization and code cleanup of {foreach} and {section} compiler
2015-08-02 19:43:21 +02:00
Uwe Tews
05a8fa245e
- improvement show resource type and start of template source instead of uid on eval: and string: resource (forum topic 25630)
2015-08-01 14:28:39 +02:00
Uwe Tews
3d2a15be3c
- update DateTime object can be instance of DateTimeImmutable since PHP5.5 https://github.com/smarty-php/smarty/pull/75
2015-08-01 13:09:41 +02:00
Uwe Tews
c5cdd90352
- optimize {foreach} and {section} compiler
2015-07-31 01:03:29 +02:00
Uwe Tews
e9d172d8ac
- optimize {section} compiler for speed and size of compiled code
2015-07-30 02:45:38 +02:00
Uwe Tews
20640577a1
Revert "- optimize {section} compiler for speed and size of compiled code"
...
This reverts commit 1074090473 .
2015-07-30 02:03:29 +02:00
Uwe Tews
1074090473
- optimize {section} compiler for speed and size of compiled code
2015-07-30 01:15:22 +02:00
Uwe Tews
aa6e2219ec
- optimize {section} compiler for speed and size of compiled code
2015-07-30 01:03:12 +02:00
Uwe Tews
8eabafed83
add some error suppression for undefined variables
2015-07-29 23:30:52 +02:00
Uwe Tews
99d802f30c
- optimize {section} compiler for speed and size of compiled code
2015-07-29 22:23:23 +02:00
Uwe Tews
c9f2a0d26e
- update for PHP 7 compatibility
2015-07-28 01:39:08 +02:00
Uwe Tews
fe4fdd15d8
add PHP 7 to travis tests
2015-07-28 01:15:31 +02:00
Uwe Tews
d192e470d5
add PHP 7 to travis tests
2015-07-28 01:12:45 +02:00
Uwe Tews
0436176739
add hhvm to travis test
2015-07-26 18:11:10 +02:00
Uwe Tews
f9d9ca0f67
- improvement impement workaround for HHVM PHP incompatibillity https://github.com/facebook/hhvm/issues/4797
2015-07-26 18:04:40 +02:00
Uwe Tews
bb3dfc6fdf
- bugfix parser did hang on text starting <?something https://github.com/smarty-php/smarty/issues/74
2015-07-25 22:32:10 +02:00
Uwe Tews
f61084f70f
move Smarty::clear() into extension
2015-07-20 04:38:13 +02:00
Uwe Tews
8cbe51a603
- improvement invalidate PHP 5.5 opcache for recompiled and cached templates https://github.com/smarty-php/smarty/issues/72
2015-07-20 04:01:43 +02:00
Uwe Tews
3e54c268ab
- bugfix config files got recompiled on each request
2015-07-20 03:15:45 +02:00
Uwe Tews
61253c1999
optimization
2015-07-12 07:03:55 +02:00
Uwe Tews
208628080f
reformat
2015-07-12 07:02:25 +02:00
Uwe Tews
21e07daf6d
optimization
2015-07-12 02:26:42 +02:00
Uwe Tews
878724c4ea
- optimize {extends} compilation
2015-07-12 01:11:22 +02:00
Uwe Tews
b3fd262541
- bugfix force file: resource in demo resource.extendsall.php
2015-07-10 05:18:10 +02:00
Uwe Tews
7a56edc180
- bugfix convert each word of class names to ucfirst in in compiler. (forum topic 25588)
2015-07-08 04:59:37 +02:00
Uwe Tews
40f0dda0e6
- new feature multiple indices on file: resource
2015-07-07 18:18:19 +02:00
Uwe Tews
1e4f28da54
update Smarty::_realpath()
2015-07-07 17:56:50 +02:00
Uwe Tews
7fa6c4fd47
update include_path handling
2015-07-07 17:55:45 +02:00
Uwe Tews
733755f94a
reformat
2015-07-07 17:51:40 +02:00
uwetews
f66cd7e062
Merge pull request #71 from mmerian/master
...
Added $limit parameter to regex_replace modifier
2015-07-07 15:40:28 +02:00
Maxime Mérian
73dc3f311a
Added $limit parameter to regex_replace modifier
2015-07-07 09:32:40 +02:00
Uwe Tews
bc99747f93
- improvement allow fetch() or display() called on a template object to get output from other template
...
like $template->fetch('foo.tpl') https://github.com/smarty-php/smarty/issues/70
2015-07-07 02:01:45 +02:00
Uwe Tews
5b401789b5
- optimization resource extendsall
2015-07-06 06:57:56 +02:00
uwetews
a35294946e
Merge pull request #69 from bmewburn/master
...
removed invalid .gitignore pattern
2015-07-06 05:46:01 +02:00
Uwe Tews
06096191c5
- optimize {block} compilation
2015-07-06 03:41:37 +02:00
Uwe Tews
b1fdc085e7
- optimization get rid of __get and __set in source object
2015-07-06 03:25:03 +02:00
Uwe Tews
b198e6488c
- optimize {block} compilation
2015-07-06 03:12:25 +02:00
bmewburn
da38a22621
removed invalid .gitignore pattern
...
git ignore pattern .idea\ causes version control in netbeans 8.02 to crash
2015-07-06 11:12:11 +10:00
Uwe Tews
7e7112153a
search {foreach} properties also in parent compiler
2015-07-01 13:01:16 +02:00
Uwe Tews
e5bea506af
- bugfix debugging console did not display string values containing \n, \r or \t correctly https://github.com/smarty-php/smarty/issues/66
2015-07-01 10:54:45 +02:00
Uwe Tews
a756ce3d9e
add error messages
2015-07-01 10:46:51 +02:00
Uwe Tews
be212a2a87
load template source early
2015-07-01 06:44:28 +02:00
Uwe Tews
9ac1dd44e2
- update {foreach} compiler
2015-07-01 03:30:08 +02:00
Uwe Tews
a9f0b8ad1f
- optimize compile check handling
2015-07-01 03:27:06 +02:00
Uwe Tews
86783c857d
use tag object cache of parent compiler
2015-07-01 03:25:55 +02:00
Uwe Tews
2762d81d93
add new methods and optimizations
2015-07-01 03:23:40 +02:00
Uwe Tews
8567f08248
fix flag in file status cache
2015-06-30 02:59:41 +02:00
Uwe Tews
c84e406db5
observe $smarty->compile_check
2015-06-29 20:48:49 +02:00
Uwe Tews
83f6154eae
- compiler optimization
2015-06-29 20:45:21 +02:00
Uwe Tews
3052406cfc
- fix $smarty->use_include_path option and optimize file path code
2015-06-29 02:41:42 +02:00
Uwe Tews
99fe8120c8
- remove redundant code
2015-06-28 15:45:50 +02:00
Uwe Tews
8d30442450
- bugfix PATH_SEPARATOR was replaced by mistake in autoloader
2015-06-28 15:12:00 +02:00
Uwe Tews
cd132140f2
- optimize file path normalization
2015-06-28 12:54:47 +02:00
Uwe Tews
c1ae1a52af
- optimize autoloader
2015-06-28 08:33:18 +02:00
Uwe Tews
ce0c1dcfae
- move $smarty->append() and $smarty->appendByRef() into extension
2015-06-28 05:22:19 +02:00
Uwe Tews
3442acd407
update comment
2015-06-28 05:00:47 +02:00
Uwe Tews
f4d7838a8f
- move getStreamVariable() into extension
2015-06-28 05:00:27 +02:00
Uwe Tews
afe9af11b7
- move $smarty->getTemplateVars() into extension
2015-06-28 04:44:16 +02:00
Uwe Tews
85eb95d960
- move auto load filter methods into extension
2015-06-28 04:05:07 +02:00
Uwe Tews
aee07f7bba
- optimize security isTrustedResourceDir()
2015-06-28 02:37:41 +02:00
Uwe Tews
5377fd5926
- move $smarty->enableSecurity() into Smarty_Security class
2015-06-28 01:38:52 +02:00
Uwe Tews
15d8e545cd
- rework of $smarty->clearCompiledTemplate() and move it to its own extension
2015-06-27 23:59:12 +02:00
Uwe Tews
9d937ffe68
- bugfix allow function plugins with name ending with 'close' https://github.com/smarty-php/smarty/issues/52
2015-06-27 22:18:08 +02:00
Uwe Tews
1360be4eef
- minor compiler optimizations
2015-06-27 21:50:33 +02:00
Uwe Tews
38e47c7ee2
- minor compiler optimizations
2015-06-27 21:23:22 +02:00
Uwe Tews
291c06dbea
- move $smarty->loadPlugin() into extension
2015-06-27 20:56:27 +02:00
Uwe Tews
75ccd86c8a
- update {include_php} with new realpath handling
2015-06-27 20:25:54 +02:00
Uwe Tews
f567d5d778
- update Smarty security with new realpath handling
2015-06-27 20:18:01 +02:00
Uwe Tews
6197df45b5
- update $smarty->_realpath for relative path not starting with './'
2015-06-27 20:08:17 +02:00
Uwe Tews
aefec40962
- fix special cases of filepath normalization
2015-06-27 18:30:47 +02:00
Uwe Tews
e0630b106a
revert
2015-06-27 16:31:26 +02:00
Uwe Tews
c5ea2e4b48
add hhvm
2015-06-27 16:26:31 +02:00
Uwe Tews
9986286af0
- bugfix resolve naming conflict between custom Smarty delimiter '<%' and PHP ASP tags https://github.com/smarty-php/smarty/issues/64
2015-06-27 16:09:50 +02:00
Uwe Tews
3239a19435
- bugfix resolve naming conflict between custom Smarty delimiter '<%' and PHP ASP tags https://github.com/smarty-php/smarty/issues/64
2015-06-27 15:35:27 +02:00
Uwe Tews
6b875397a5
update autoloader
2015-06-21 13:56:10 +02:00
Uwe Tews
b64d5d26c9
- update realpath handling
2015-06-21 13:53:52 +02:00
Uwe Tews
666f7264f4
optimization
2015-06-21 13:51:50 +02:00
Uwe Tews
dd4cbfac3a
- move registerObject / registerClass into extension
2015-06-21 13:43:17 +02:00
Uwe Tews
1a24b3971d
- optimization of filter execution
2015-06-21 13:23:23 +02:00
Uwe Tews
c09b05cbe3
- optimization of directory handling / build realpath
2015-06-21 13:11:52 +02:00
Uwe Tews
31d94d05d3
- optimization of template/config file normalization
2015-06-21 12:52:49 +02:00
Uwe Tews
4e471b19e2
- optimization of template/config file normalization
2015-06-21 12:42:53 +02:00
Uwe Tews
2d0f457abd
Update
2015-06-20 18:25:05 +02:00
Uwe Tews
afe79aac2e
- improvement allow closures as callback at $smarty->registerFilter() https://github.com/smarty-php/smarty/issues/59
2015-06-19 03:21:52 +02:00
Uwe Tews
4537d8aae6
Release 3.1.27
2015-06-18 02:55:59 +02:00
Uwe Tews
34531edb4c
- bugfix another update on file path normalization failed on path containing something like "/.foo/" https://github.com/smarty-php/smarty/issues/56
2015-06-18 02:53:22 +02:00
Uwe Tews
2cdba79a74
Release 3.1.26
2015-06-18 02:08:42 +02:00
Uwe Tews
7b469c1f4a
- bugfix file path normalization failed on path containing something like "/.foo/" https://github.com/smarty-php/smarty/issues/56
2015-06-18 01:46:35 +02:00
Uwe Tews
52ced72361
- bugfix calling a plugin with nocache option but no other attributes like {foo nocache} caused call to undefined function https://github.com/smarty-php/smarty/issues/55
2015-06-18 00:06:40 +02:00
Uwe Tews
58616d6ee5
Release 3.1.25
2015-06-16 00:23:24 +02:00
Uwe Tews
ec383370cb
- optimization of smarty_cachereource_keyvaluestore.php code
2015-06-15 23:39:42 +02:00
Uwe Tews
3bb22560c0
- bugfix an output tag with variable, modifier followed by an operator like {$foo|modifier+1} did fail https://github.com/smarty-php/smarty/issues/53
2015-06-14 04:26:37 +02:00
Uwe Tews
83f3f6d7f1
- bugfix an output tag with variable, modifier followed by an operator like {$foo|modifier+1} did fail https://github.com/smarty-php/smarty/issues/53
2015-06-14 04:23:50 +02:00
Uwe Tews
ecddc1f720
- bugfix a relative sub template path could fail if template_dir path did contain /../ https://github.com/smarty-php/smarty/issues/50
...
- optimization rework of path normalization
2015-06-14 03:30:31 +02:00
Uwe Tews
e96ee1b5d6
- bugfix a custom cache resource using smarty_cachereource_keyvaluestore.php did fail if php.ini mbstring.func_overload = 2 (forum topic 25568)
2015-06-13 19:39:02 +02:00
Uwe Tews
768b7d1ec5
- bugfix the lexer could hang on very large quoted strings (forum topic 25570)
2015-06-11 23:33:30 +02:00
Uwe Tews
f1e1f56ffe
- bugfix using {$foo} as array index like $bar.{$foo} or in double quoted string like "some {$foo} thing" failed https://github.com/smarty-php/smarty/issues/49
2015-06-08 23:54:46 +02:00
Uwe Tews
d804454f21
Fix spelling
2015-06-04 02:40:36 +02:00
Uwe Tews
2a1badfebb
- bugfix possible error message on unset() while compiling {block} tags https://github.com/smarty-php/smarty/issues/46
2015-06-04 02:39:26 +02:00
Uwe Tews
fa269d418f
- bugfix <?xml ... ?> including template variables broken since 3.1.22 https://github.com/smarty-php/smarty/issues/47
2015-06-01 22:26:45 +02:00
Uwe Tews
3771ea8d35
Fix comments
2015-05-28 22:31:35 +02:00
Uwe Tews
63b1d343b8
- bugfix {include} with variable file name must not create by default individual cache file (since 3.1.22) https://github.com/smarty-php/smarty/issues/43
2015-05-27 22:24:24 +02:00
Uwe Tews
0434f34bdd
- bugfix if condition string 'neq' broken due to a typo https://github.com/smarty-php/smarty/issues/42
2015-05-24 18:37:53 +02:00
Uwe Tews
c9cd39f36f
minor bugfix when processing autoliteral { php} tag. Does not effect generated output.
2015-05-23 23:40:02 +02:00
Uwe Tews
0356b70578
minor fix
2015-05-23 22:40:24 +02:00
Uwe Tews
aa1e554993
Remove redundant code
2015-05-23 22:36:46 +02:00
Uwe Tews
531b298886
Prepare 3.1.25-dev
2015-05-23 19:25:50 +02:00
Uwe Tews
b58771e31b
Release 3.1.24
2015-05-23 19:22:14 +02:00
Uwe Tews
c226fbd3d9
Travis setup does not work for PHP 5.2 for some reason
2015-05-23 19:04:19 +02:00
Uwe Tews
25391749a1
- improvement on php_handling to allow very large PHP sections, better error handling
...
- improvement allow extreme large comment sections (forum 25538)
2015-05-23 19:03:13 +02:00
Uwe Tews
ec449734c3
- improvement on php_handling to allow very large PHP sections, better error handling
...
- improvement allow extreme large comment sections (forum 25538)
2015-05-23 18:56:00 +02:00
Uwe Tews
c8ecad0b06
- bugfix named {foreach} comparison like $smarty.foreach.foobar.index > 1 did compile into wrong code https://github.com/smarty-php/smarty/issues/41
2015-05-21 00:59:26 +02:00
Uwe Tews
5d8718f761
- bugfix broken PHP 5.2 compatibility when compiling <?php tags https://github.com/smarty-php/smarty/issues/40
2015-05-21 00:05:16 +02:00
Uwe Tews
85e05458c6
- bugfix compiler could run into the pcre.backtrack_limit on larger comment or {php} tag sections (forum 25538)
2015-05-20 05:48:45 +02:00
Uwe Tews
b8eb8784d4
- bugfix output filter trimwhitespace could run into the pcre.backtrack_limit on large output (code.google issue 220)
2015-05-20 04:26:29 +02:00
Uwe Tews
5468f140fa
- bugfix compiler did overwrite existing variable value when setting the nocache attribute https://github.com/smarty-php/smarty/issues/39
2015-05-19 22:47:04 +02:00
Uwe Tews
dcf53ca957
Fix max nesting parameter
2015-05-18 05:39:57 +02:00
Uwe Tews
ed740b967a
Removed redundant code
2015-05-18 04:26:46 +02:00
Uwe Tews
ac99173cea
- improvement introduce shortcuts in lexer/parser rules for most frequent terms for higher
...
compilation speed
2015-05-18 04:12:40 +02:00
Uwe Tews
bef7c55544
{for} should be able to init array elements
2015-05-18 04:00:17 +02:00
Uwe Tews
e3123c0427
- improvement higher compilation speed by modified lexer/parser generator at "smarty/smarty-lexer"
2015-05-16 16:33:50 +02:00
Uwe Tews
d21921de22
- improvement reduce number of lexer tokens on operators and if conditions
2015-05-16 14:47:12 +02:00
Uwe Tews
22bccee350
- improvement remove not needed ?><?php transitions from compiled code
2015-05-16 14:17:59 +02:00
Uwe Tews
0bdd805d6b
remove code not intended for this version
2015-05-16 13:40:45 +02:00
Uwe Tews
a74804b061
- bugfix {php}{/php} did work just for single lines https://github.com/smarty-php/smarty/issues/33
2015-05-16 13:33:04 +02:00
Uwe Tews
9f1061f5bc
- bugfix template functions failed when calling the function recursively with function name as tag name https://github.com/smarty-php/smarty/issues/28
2015-05-14 15:13:09 +02:00
Uwe Tews
2db464a6e5
- bugfix template functions failed when calling the function recursively with function name as tag name https://github.com/smarty-php/smarty/issues/28
2015-05-14 15:11:38 +02:00
Uwe Tews
8ee805632d
- bugfix in Smarty_Security 'nl2br' should be a trusted modifier, not PHP function (code.google issue 223)
2015-05-13 20:17:02 +02:00
Uwe Tews
dea56a2243
default for $debug_tpl will be set up in Smarty_Internal_Debug
2015-05-13 19:25:05 +02:00
Uwe Tews
e0dbc79204
Debugging - add display of Smarty version
2015-05-13 19:10:06 +02:00
Uwe Tews
a3c89bb4f4
Debugging - truncate output of Origin to 80 characters and increase string values from 40 to 80 characters
2015-05-13 19:03:54 +02:00
Uwe Tews
319e396937
use clean Smarty object to display the debugging console.
...
Avoid possible promblems when application did overload the Smarty object or properties go modified hardcoded in the class source.
2015-05-13 18:04:29 +02:00
Uwe Tews
3240b5a596
- improvement remove not needed ?><?php transitions from compiled code
2015-05-13 02:09:00 +02:00
Uwe Tews
2b858212b7
- improvement remove not needed ?><?php transitions from compiled code
2015-05-13 02:06:33 +02:00
Uwe Tews
cf5b5c4e1f
Disable hhvm test because of a hhvm PHP compatibility problem
2015-05-13 01:50:23 +02:00
Uwe Tews
07c781d9cf
- bugfix in nested {foreach} saved item attributes got overwritten https://github.com/smarty-php/smarty/issues/33
2015-05-13 00:33:23 +02:00
Uwe Tews
e4741e9dd7
version update after fixed issues 28 and 29
2015-05-12 20:41:41 +02:00
Uwe Tews
ece0e2241f
Log fixes for issue 28 and 29
2015-05-12 20:39:10 +02:00
Uwe Tews
3ac71869a6
Remove PHP nightly test
2015-05-12 20:33:18 +02:00
uwetews
f791eeba11
Merge pull request #32 from Stricted/patch-1
...
fix variable name
2015-05-12 18:40:53 +02:00
uwetews
962cf3d193
Merge pull request #30 from Stricted/master
...
fix constant handling
2015-05-12 18:40:08 +02:00
Stricted
a8f30dc7f6
fix variable name
2015-05-12 15:52:54 +02:00
Stricted
4af23bc104
fix last commit
2015-05-12 15:44:54 +02:00
Stricted
811e2e0e13
fix constant handling
...
on undefined constants you get 'TEST_CONST' on definied constants TEST_CONST
2015-05-12 15:43:57 +02:00
Uwe Tews
2ff51de3df
allow failures of hhvm
2015-05-12 04:48:10 +02:00
Uwe Tews
04f0090c40
release 3.1.23
2015-05-12 04:08:22 +02:00
Uwe Tews
e6a4e68139
remove hhvm nightly test
2015-05-12 04:01:10 +02:00
Uwe Tews
d234625d7c
- bugfix of smaller performance issue introduce in 3.1.22 when caching is enabled
2015-05-12 03:34:38 +02:00
Uwe Tews
b4792df08a
- bugfix missig entry for smarty-temmplate-config in autoloader
2015-05-12 03:07:24 +02:00
Uwe Tews
6deb3cee7c
update travis
2015-05-12 02:58:32 +02:00
Uwe Tews
c12655ded2
- bugfix of smaller performance issue introduce in 3.1.22 when caching is enabled
2015-05-12 02:52:30 +02:00
Uwe Tews
8acb920e20
update
2015-05-12 01:17:14 +02:00
Uwe Tews
d276829aa6
fix comment
2015-05-11 23:09:27 +02:00
Uwe Tews
556185c9e2
Update
2015-05-10 23:17:43 +02:00
Uwe Tews
ebef3b1988
Update
2015-05-10 23:14:51 +02:00
Uwe Tews
ee8a695a57
Update
2015-05-10 22:46:48 +02:00
Uwe Tews
94d5e1e198
Update
2015-05-10 22:42:24 +02:00
Uwe Tews
469a6ad860
correction
2015-05-10 21:55:43 +02:00
Uwe Tews
735507b0ba
correction
2015-05-10 21:53:16 +02:00
Uwe Tews
4c3e67a301
update
2015-05-10 21:47:34 +02:00
Uwe Tews
31edf7fcea
push
2015-05-10 21:44:18 +02:00
Uwe Tews
5963632a99
add .travis.yml
2015-05-10 21:05:54 +02:00
Uwe Tews
3836cafd90
Prepare 3.1.23-dev
2015-05-10 13:17:33 +02:00
Uwe Tews
0f9ec2642a
Release 3.1.22
2015-05-10 13:08:04 +02:00
Uwe Tews
ab93b0feee
- improvement added constants for $debugging
2015-05-10 12:18:41 +02:00
Uwe Tews
741a07fc8f
new dev version
2015-05-10 12:13:21 +02:00
Uwe Tews
8a34ad0cd2
parameter cleanup
2015-05-10 12:09:24 +02:00
Uwe Tews
b0ca67b213
- bugfix cache lock was not handled correctly after timeout when $cache_locking == true
2015-05-10 12:08:47 +02:00
Uwe Tews
5ce5d4df49
- bugfix custom cache resource did not observe compile_id and cache_id when $cache_locking == true
2015-05-10 12:00:19 +02:00
Uwe Tews
edf49ca3cf
formatting
2015-05-10 11:53:09 +02:00
Uwe Tews
af4a923da5
- uodate and fixes at cache locking
2015-05-08 07:27:45 +02:00
Uwe Tews
d7b0b57420
- optimization of resource class loading
2015-05-08 06:02:59 +02:00
Uwe Tews
c5468b421e
- optimization of resource class loading
2015-05-07 22:57:59 +02:00
Uwe Tews
37449b2fcb
- improvement of the debugging console. Read NEW_FEATURES.txt
2015-05-07 04:36:49 +02:00
Uwe Tews
af08353e93
- bugfix/improvement in 3.1.22-dev cache locking did not work as expected
2015-05-06 23:10:39 +02:00
Uwe Tews
57df382ff2
- bugfix in 3.1.22-dev cache resource must not be loaded for subtemplates
2015-05-06 22:10:04 +02:00
Uwe Tews
d92714cc7e
- optimization move <?php ?> handling from parser to new compiler module
2015-05-06 00:03:26 +02:00
Uwe Tews
d7ff1eec47
- optimization on cache update when main template is modified
2015-05-05 15:46:24 +02:00
Uwe Tews
914815d438
Fix broken code
2015-05-05 06:48:37 +02:00
Uwe Tews
3e4734acfb
- bugfix code could be messed up when {tags} are used in multiple attributes https://github.com/smarty-php/smarty/issues/23
2015-05-05 03:33:53 +02:00
Uwe Tews
6575e11f68
Add missing properties
2015-05-05 03:27:16 +02:00
Uwe Tews
c5915a8c0c
- improvement use is_file() checks to avoid errors suppressed by @ which could still cause problems ( https://github.com/smarty-php/smarty/issues/24 )
2015-05-05 00:41:30 +02:00
Uwe Tews
f14f2dcc6f
- bugfix Smarty_Resource::parseResourceName incompatible with Google AppEngine ( https://github.com/smarty-php/smarty/issues/22 )
2015-05-04 22:44:29 +02:00
Uwe Tews
22ea1404df
add information how to get development tools
2015-05-04 18:21:55 +02:00
Uwe Tews
08c81acbb1
add require-dev to load PHPUnit tests and lxer/parser generator (reverted from commit f3d7b05ccb)
2015-05-04 18:20:44 +02:00
Uwe Tews
9789867d8b
Revert "add require-dev to load PHPUnit tests and lxer/parser generator"
...
This reverts commit f3d7b05ccb .
2015-05-04 18:09:21 +02:00
Uwe Tews
80926a538d
Revert "test"
...
This reverts commit d40e2a0286 .
2015-05-04 18:08:41 +02:00
Uwe Tews
d40e2a0286
test
2015-05-04 05:54:05 +02:00
Uwe Tews
f3d7b05ccb
add require-dev to load PHPUnit tests and lxer/parser generator
2015-05-04 05:20:22 +02:00
Uwe Tews
ea17aad266
- bugfix plugins of merged subtemplates not loaded in 3.1.22-dev (forum topic 25508) 2nd fix
2015-04-28 23:12:12 +02:00
Uwe Tews
e312dd9b59
- bugfix plugins of merged subtemplates not loaded in 3.1.22-dev (forum topic 25508)
2015-04-28 01:38:45 +02:00
Uwe Tews
c7ba22dc98
- bugfix a nocache template variable used as parameter at {insert} was by mistake cached
2015-04-23 02:34:28 +02:00
Uwe Tews
de892651c2
- bugfix at a template function containing nocache code a parmeter could overwrite a template variable of same name
2015-04-20 22:59:45 +02:00
Uwe Tews
6fb27d5ae4
strip property must now be public
2015-04-07 02:11:20 +02:00
Uwe Tews
a92302d059
move strip processing from parser to compiler
2015-04-02 01:42:53 +02:00
Uwe Tews
e9fd2354ef
move compileVariable() from parser to compiler
2015-04-02 01:35:16 +02:00
Uwe Tews
ea2a566b1f
- bugfix Smarty_Security->allow_constants=false; did also disable true, false and null (change of 16.03.2015)
...
- improvement added a whitelist for trusted constants to security Smarty_Security::$trusted_constants (forum topic 25471)
2015-03-28 03:58:08 +01:00
Uwe Tews
443ae8c216
- bugfix problems when {function}{/function} defined a template function in a cached subtemplate and it was called {call} from a not cached subtemplate {forum topic 25468}
2015-03-23 00:39:22 +01:00
Uwe Tews
2a005ac6d6
- bugfix correct update of global variable values on exit of template functions. (reported under Smarty Developers)
2015-03-20 18:25:59 +01:00
Uwe Tews
2758cb8ce9
Correct version number
2015-03-20 01:49:52 +01:00
Uwe Tews
4ecc75344f
- bugfix make sure that function properties get saved only in compiled files containing the fuction definition {forum topic 25452}
2015-03-20 00:41:55 +01:00
Uwe Tews
03c7b786a0
Clean up template functions property structure
2015-03-17 04:53:57 +01:00
Uwe Tews
ab1272a2e4
fix whitespaces on tags included in double quoted strings
2015-03-17 04:31:51 +01:00
Uwe Tews
4c0e124c22
- bugfix {block}{/block} tags did not work inside double quoted strings issues #18
2015-03-17 03:40:01 +01:00
Uwe Tews
6df84b6fe3
- bugfix {block}{/block} tags did not work inside double quoted issues #18
2015-03-17 03:31:44 +01:00
Uwe Tews
e7ad5909e5
- bugfix Smarty_Security->allow_constants=false; did not disallow direct usage of defined constants like {SMARTY_DIR} {forum topic 25457}
2015-03-17 02:29:19 +01:00
Uwe Tews
eead9c81e9
- bugfix problems with {function}{/function} and {call} tags in different subtemplate cache files {forum topic 25452}
2015-03-17 01:10:51 +01:00
Uwe Tews
7b7118eea9
- bugfix $smarty->compile_check must be restored before rendering of a just updated cache file {forum 25452}
2015-03-15 02:01:07 +01:00
Uwe Tews
7fe81e6d79
- bugfix {nocache} {/nocache} tags corrupted code when used within a nocache section caused by a nocache template variable
2015-03-14 15:17:58 +01:00
Uwe Tews
8020144d46
- bugfix template functions defined with {function} in an included subtemplate could not be called in nocache
...
mode with {call... nocache} if the subtemplate had it's own cache file {forum 25452}
2015-03-14 12:02:57 +01:00
Uwe Tews
e9b1f296cb
- bugfix {include ... nocache} with variable file or compile_id attribute was not executed in nocache mode.
2015-03-10 18:06:05 +01:00
Uwe Tews
8892f358ad
- bugfix __get() was called when loading config files
2015-03-07 01:44:30 +01:00
Uwe Tews
b1cd4cd7d2
Return to saved output buffer level on exceptions
2015-03-01 21:39:54 +01:00
Uwe Tews
464b37c053
optimize compiled code of {foreach}
2015-02-15 16:58:42 +01:00
Uwe Tews
8082bc7471
get rid of smarty object self pointer
2015-02-15 01:45:37 +01:00
Uwe Tews
f93cfc63ad
get rid of reference parameter
2015-02-14 21:57:42 +01:00
Uwe Tews
6925c98af0
- bugfix multiple Smarty::fetch() of same template when $smarty->merge_compiled_includes = true; could cause function alreday defined error
2015-02-12 23:56:43 +01:00
Uwe Tews
0e87a99507
- bugfix recursive {includes} did create E_NOTICE message when $smarty->$merge_compiled_includes = true;
2015-02-11 07:15:40 +01:00
Uwe Tews
aec380839c
- bugfix recursive {includes} did create E_NOTICE message when $smarty->$merge_compiled_includes = true;
2015-02-11 06:57:17 +01:00
Uwe Tews
05f5ddf573
remove comments
2015-02-09 23:52:25 +01:00
Uwe Tews
d62d394345
update
2015-02-08 22:22:52 +01:00
Uwe Tews
d288e58692
update
2015-02-08 21:36:32 +01:00
Uwe Tews
b2b114d5b8
udate
2015-02-08 21:21:30 +01:00
Uwe Tews
10bf6f6032
add isset($_smarty_tpl) to avoid errors when unit test runs in separate process
2015-02-08 21:10:45 +01:00
Uwe Tews
1fc2b9ece2
add isset($_smarty_tpl) to avoid errors when unit test runs in separate process
2015-02-08 19:57:14 +01:00
Uwe Tews
e4e3e176c0
add note
2015-01-22 04:07:58 +01:00
Uwe Tews
1a781b39b1
new feature: security can now control access to static methods and properties
...
see also NEW_FEATURES.txt
2015-01-22 03:53:01 +01:00
Uwe Tews
ec19bc763f
- bugfix 'self::' and 'parent::' was interpreted in template syntax as static class
2015-01-21 23:30:37 +01:00
Uwe Tews
8d5fa36a80
- bugfix clearCompiledTemplates(), clearAll() and clear() could try to delete whole drive
...
at wrong path permissions because realpath() fail (forum 25397)
2015-01-21 22:14:25 +01:00
Uwe Tews
85f24ce413
convert writeFile() to object method to remove a vulnerability
2015-01-21 21:12:00 +01:00
Uwe Tews
7a1df12afa
- bugfix clearCompiledTemplates() could try to delete whole drive
...
at wrong path permissions because realpath() fail (forum 25397)
2015-01-20 22:33:38 +01:00
Uwe Tews
4428d72e6d
Update testInstall() and move it into its own class
2015-01-12 22:12:20 +01:00
Uwe Tews
593f984f6a
load source, compiled and cache resource manually in normal flow (avoid __get())
2015-01-07 17:46:12 +01:00
Uwe Tews
466c3ee9f8
Use require_once ; remove unnedded paramter
2015-01-07 16:46:57 +01:00
Uwe Tews
740a583c7c
Use require_once
2015-01-07 16:46:03 +01:00
Uwe Tews
b3f8ddefd2
remove redundant overloaded methods
2015-01-06 04:42:49 +01:00
Uwe Tews
43f043364f
fix case in class name
2015-01-06 01:18:58 +01:00
Uwe Tews
67162324bb
check ..._dir property overloading
...
if $template_dir, $compile_dir, $cache_dir, $config_dir or $plugins_dir properties
are overloaded the setters must be called for required processing
2015-01-05 02:03:24 +01:00
Uwe Tews
2aaa29ad20
reset _is_file_cache
2015-01-04 23:54:11 +01:00
Uwe Tews
7cc981e6a6
revert some unneeded normalization of compiled_dir, cache_dir and plugins_dir
2015-01-04 23:42:22 +01:00
Uwe Tews
3463fae2a1
push llast weeks changes to github
2015-01-04 05:57:49 +01:00
Uwe Tews
111a10bb17
Move some classes into its own files
2015-01-04 05:51:52 +01:00
Uwe Tews
d528234a97
Small optimization
2015-01-04 05:51:03 +01:00
Uwe Tews
068da64c99
best defaults for internal resource caching
...
$resource_caching = false and $template_resource_caching = true
fixed typos
2015-01-04 05:49:38 +01:00
Uwe Tews
66eac7bc2a
fix code frame of inline (merged) subtemplate
2015-01-03 21:32:33 +01:00
Uwe Tews
8b71e591c0
some minor speed optimization
2015-01-03 21:27:33 +01:00
Uwe Tews
57620443e9
Optimize constructor
2015-01-03 07:56:03 +01:00
Uwe Tews
f236905fed
create different compiled templates and config files
...
Smarty does now automatically detect a change of the $merge_compiled_includes and $escape_html
property and create different compiled templates files depending on the setting.
Same applies to config files and the $config_overwrite, $config_booleanize and
$config_read_hidden properties.
2015-01-03 07:36:07 +01:00
Uwe Tews
cfdd53c6b4
restructure config file processing
...
move code into an extension class
use Smarty_Internal_Template
2015-01-02 22:30:53 +01:00
Uwe Tews
75ad0b4da5
move default template handling into an extesion class
2015-01-02 10:48:07 +01:00
Uwe Tews
15728f6ea3
normalize directory path
2015-01-02 10:22:36 +01:00
Uwe Tews
c8712b8b7e
update autoloader
2015-01-02 09:12:27 +01:00
Uwe Tews
0a3579f9ca
restructure template processing
...
Code was moved into classes it better belongs to.
This does reduce also Smarty's memory footprint
2015-01-02 09:12:01 +01:00
Uwe Tews
8c1f400c09
remove \r from template source before compiling
2015-01-02 08:25:27 +01:00
Uwe Tews
97e7948e16
fix update of file dependency
2015-01-02 08:20:57 +01:00
Uwe Tews
6f801de283
update buildFilepath()
2015-01-02 06:29:08 +01:00
Uwe Tews
c55367d1f6
update buildFilepath()
2015-01-02 06:26:04 +01:00
Uwe Tews
296a88b557
Change class name case because of composer autoloader problems
2015-01-02 06:07:19 +01:00
Uwe Tews
3f08b18170
Correct recompiled check
2015-01-02 01:05:03 +01:00
Uwe Tews
48f66c81c7
rework class Smarty_Template_Cached
...
- move class Smarty_Template_Cached in its own file
- implement all code for chached template handling in class
2015-01-01 23:53:59 +01:00
Uwe Tews
c3aa9994c8
rework source resource handling
...
- move class Smarty_Template_Source into its own file
- impelement all source processing into the classes it better belongs to
2015-01-01 23:34:29 +01:00
Uwe Tews
dd2d24d1d6
rework class Smarty_Template_Compiled
...
- move class Smarty_Template_Compiled in its own file
- implement all code for compiled template handling in class
2015-01-01 23:28:09 +01:00
Uwe Tews
7c4e5175a4
rework class Smarty_Template_Compiled
...
- move class Smarty_Template_Compiled in its own file
- implement all code for compiled template handling in class (reverted from commit f6a1349fdb )
2015-01-01 23:15:08 +01:00
Uwe Tews
f6a1349fdb
rework class Smarty_Template_Compiled
...
- move class Smarty_Template_Compiled in its own file
- implement all code for compiled template handling in class
2015-01-01 23:11:35 +01:00
Uwe Tews
80bf76cc6e
move internal createTemplateCodeFrame() method into an extension class
2015-01-01 22:59:07 +01:00
Uwe Tews
e8a77171d3
implement templateId generation as method
2015-01-01 22:27:45 +01:00
Uwe Tews
2f8d4f1dbf
missing property
2014-12-31 16:08:36 +01:00
Uwe Tews
0cb8b24055
implement most common stetters as method for better performance
2014-12-31 15:56:59 +01:00
Uwe Tews
b013984dfd
move properties into classes where they better belong to
2014-12-31 15:44:08 +01:00
Uwe Tews
2687f36849
update autoloader with for special class names
2014-12-31 14:32:47 +01:00
Uwe Tews
47faa63a0e
use function_exists('mb_get_info') for setting Smarty::$_MBSTRING
...
Function mb_split could be overloaded depending on php.ini mbstring.func_overload
2014-12-31 06:07:17 +01:00
Uwe Tews
4b7fba4d88
get config properties via compiler object
...
- reverting part of earlier change of today
2014-12-30 18:16:51 +01:00
Uwe Tews
e351c0123f
move some code into Smarty_Internal_Debug class
...
where it better belongs to
2014-12-30 17:17:15 +01:00
Uwe Tews
d3e26fb679
template function call handling
2014-12-30 16:43:42 +01:00
Uwe Tews
1d248d6349
formatting
2014-12-30 16:28:18 +01:00
Uwe Tews
8fe6f14af7
Change class name case because of composer autoloader problems
2014-12-30 16:27:08 +01:00
Uwe Tews
b122878131
rename parse tree class names and minor fixes
2014-12-30 16:22:03 +01:00
Uwe Tews
825ccc9f47
rename parse tree class names to Smarty_Internal_ParseTree....
2014-12-30 16:16:54 +01:00
Uwe Tews
485f093e0b
get config properties via template object
2014-12-30 16:03:21 +01:00
Uwe Tews
6be6bf7b70
limit the template nesting level by security
2014-12-30 12:57:43 +01:00
Uwe Tews
1da50aa61d
security can now disable special $smarty variables
...
see also NEW_FEATURES.txt
2014-12-29 21:59:23 +01:00
Uwe Tews
49a3427515
clear internal _is_file_cache when plugins_dir was modified
2014-12-27 23:06:04 +01:00
Uwe Tews
5e4f55d121
add .plex and .y files
...
add lexer .plex and parser .y files to distribution for easier version
control
2014-12-14 00:49:42 +01:00
Uwe Tews
46654268ef
update .gitignore
2014-12-14 00:44:11 +01:00
Uwe Tews
2fb5bc6bbe
lexer and parser optimizations
...
up to 30% higher compiling speed depending on template complexity
2014-12-13 23:02:29 +01:00
Uwe Tews
2fe60e8996
resolve parser ambiguity
...
- bugfix resolve parser ambiguity between constant print tag {CONST} and
other smarty tags after change of 09.12.2014
2014-12-11 05:21:21 +01:00
Smarty PHP Template Engine
042e93c725
Merge pull request #12 from jenolan/master
...
Commit 7b2a2c4a88 changed the constant pro...
2014-12-11 03:11:19 +01:00
Larry Lewis
7bb7b3ac03
Commit 7b2a2c4a88 changed the constant processing to allow a variable in teh $smarty.const but this broke the normal callout. Change allows both methods.
2014-12-11 08:06:27 +11:00
Uwe Tews
2a2a73cabc
- bugfix call of template function by a variable name
...
did not work after latest changes (forum 25342)
2014-12-10 00:51:09 +01:00
Uwe Tews
7bd40d2c0b
- bugfix variables $null, $true and $false did not work
...
after the change of 12.11.2014 (forum 25342)
2014-12-09 23:33:11 +01:00
Uwe Tews
ffbfe40043
- bugfix a plugin with attached modifier could fail
...
if the tag was immediately followed by another Smarty tag (since 3.1.21) (forum 25326)
2014-11-23 13:25:09 +01:00
Uwe Tews
de7310b702
Revert "delete unwanted file"
...
This reverts commit 77d8349ffb .
2014-11-13 19:52:41 +01:00
Uwe Tews
77d8349ffb
delete unwanted file
2014-11-13 19:48:34 +01:00
Uwe Tews
0b6af0add7
move autoload code into Autoloader.php.
...
Use Composer autoloader when possible
2014-11-13 19:42:01 +01:00
Uwe Tews
0b21213c55
new feature - added support of namespaces to template code
2014-11-12 19:07:00 +01:00
Uwe Tews
c7e8881c76
bugfix for recent changes of {function} tag handling
2014-11-11 01:01:01 +01:00
Uwe Tews
9ecbb93ebb
update of the $smarty->merge_compiled_includes option
2014-11-11 00:03:08 +01:00
Uwe Tews
460be5a5da
bugfix for recent changes of {function} tag handling
2014-11-10 23:57:30 +01:00
Uwe Tews
adc6091c4d
update of cache resources for template function calls in nocache mode
2014-11-09 10:20:06 +01:00
Uwe Tews
223cdc0787
moved code into constructor
2014-11-09 10:15:16 +01:00
Uwe Tews
230c5787e6
move Smarty exceptions into syslibs folder
2014-11-09 06:42:20 +01:00
Uwe Tews
4edb5fce30
Update of change log
2014-11-08 21:44:55 +01:00
Uwe Tews
b82756a705
- bugfix subtemplate called in nocache mode could be called with wrong compile_id when it did change on one of the calling templates
2014-11-08 21:27:53 +01:00
Uwe Tews
ea9c681106
remove no longer needed code
2014-11-08 21:06:53 +01:00
Uwe Tews
f92af96419
fixed $smarty->debugging on merged compiled subtemplates
2014-11-08 21:02:14 +01:00
Uwe Tews
8f8d462b8a
add code of template functions called in nocache mode dynamically to cache file
2014-11-08 17:19:53 +01:00
uwetews
845c4184b2
Merge pull request #9 from uwetews/master
...
new $smarty->debug options
2014-11-04 19:00:56 +01:00
Uwe Tews
963e5dae5e
new $smarty->debug options
...
- new feature $smarty->debug = true; => overwrite existing Debug Console
window (old behaviour)
$smarty->debug = 2; => individual Debug Console window by template name
2014-11-04 18:59:57 +01:00
uwetews
5b1c649c6a
Merge pull request #8 from uwetews/master
...
Debug Console Update
2014-11-03 22:31:13 +01:00
Uwe Tews
158b7be58a
Debug Console Update
...
- bugfix Debug Console did not show included subtemplates since 3.1.17
(forum 25301)
- bugfix Modifier debug_print_var did not limit recursion or prevent
recursive object display at Debug Console
(ATTENTION: parameter order has changed to be able to specify maximum
recursion)
- bugfix Debug consol did not include subtemplate information with
$smarty->merge_compiled_includes = true
- improvement The template variables are no longer displayed as objects
on the Debug Console
- improvement $smarty->createData($parent = null, $name = null) new
optional name parameter for display at Debug Console
- addition of some hooks for future extension of Debug Console
2014-11-03 22:27:32 +01:00
uwetews
4b3196fe30
Merge pull request #2 from smarty-php/master
...
Merge pull request #7 from uwetews/master
2014-11-02 14:57:41 +01:00
uwetews
4369b2fe05
Merge pull request #7 from uwetews/master
...
-bugfix and enhancement on subtemplate {include} and template {function}
2014-11-01 22:52:01 +01:00
Uwe Tews
bc13ebbc9b
-bugfix and enhancement on subtemplate {include} and template {function} tags.
...
* Calling a template which has a nocache section could fail if it was
called from a cached and a not cached subtemplate.
* Calling the same subtemplate cached and not cached with the
$smarty->merge_compiled_includes enabled could cause problems
* Many smaller related changes
2014-11-01 22:42:34 +01:00
uwetews
5f2f292739
Merge pull request #1 from smarty-php/master
...
merge
2014-11-01 11:24:58 +01:00
Smarty PHP Template Engine
337ab5bd1e
Merge pull request #6 from aivus/patch-1
...
Clean merge conflicts
2014-11-01 11:14:25 +01:00
Ilya Antipenko
95cc39deb6
Clean merge conflicts
2014-11-01 11:22:03 +02:00
Smarty PHP Template Engine
402547baaf
Merge pull request #5 from uwetews/master
...
resolved merge conflict
2014-11-01 00:42:31 +01:00
Uwe Tews
199c16e827
resolved merge conflict
2014-11-01 00:34:32 +01:00
Uwe Tews
84e5ef7345
3.1.22-dev
2014-10-31 05:48:52 +01:00
Uwe Tews
21204c6613
Merge branch 'trunk'
2014-10-31 05:31:56 +01:00
Uwe Tews
1f878e6d74
v3.1.21
2014-10-31 05:22:20 +01:00
Uwe Tews
6254b5d4df
Merge branch 'v3.1.21'
2014-10-31 05:16:16 +01:00
Uwe Tews
cef27602bb
v3.1.20
2014-10-31 05:12:39 +01:00
Uwe Tews
1153afe2f5
Merge branch 'v3.1.20'
2014-10-31 05:05:40 +01:00
Uwe Tews
be0fd3186c
Merge branch 'v3.1.19'
2014-10-31 02:29:14 +01:00
Uwe Tews
c65444124a
v3.1.19
2014-10-31 02:26:40 +01:00
Uwe Tews
bf1de6c105
Merge branch 'v3.1.18'
2014-10-31 02:15:15 +01:00
Uwe Tews
97decc4c04
Merge branch 'v3.1.17'
2014-10-31 02:10:17 +01:00
Uwe Tews
43be80762e
Merge branch 'v3.1.16'
2014-10-31 02:05:49 +01:00
Uwe Tews
1bdaf9a2a6
v3.1.15
2014-10-31 02:02:52 +01:00
Uwe Tews
4281d16bd4
Merge branch 'v3.1.15'
2014-10-31 01:59:07 +01:00
Uwe Tews
5ea2a50161
v3.1.14
2014-10-31 01:55:21 +01:00
Uwe Tews
8c18f8664c
Merge branch 'v3.1.14'
2014-10-31 01:52:37 +01:00
Uwe Tews
7b2a2c4a88
Merge branch 'v3.1.13'
2014-10-31 01:47:26 +01:00
Uwe Tews
014e8bc2be
Merge branch 'v3.1.12'
...
Conflicts:
change_log.txt
2014-10-31 01:41:04 +01:00
Uwe Tews
25d1339bea
v3.1.12
2014-10-31 01:38:04 +01:00
Uwe Tews
0b24c4520b
Merge branch 'v3.1.11'
2014-10-31 01:35:16 +01:00
Uwe Tews
5b6aa49b23
prepare 3.1
2014-10-31 01:34:24 +01:00
Uwe Tews
af7a4c10e2
v3.1.11
2014-10-31 01:30:32 +01:00
Uwe Tews
f83b3effc6
prepare 3.1
2014-10-31 01:28:26 +01:00
Uwe Tews
52fb7b1e25
- bugfix access to class constant by object like {$object::CONST} or variable class name {$class::CONST} did not work (forum 25301) me
2014-10-30 00:55:01 +01:00
Uwe Tews
0c9ca2994e
- bugfix merge_compiled_includes option failed when caching enables and same subtemplate was included cached and not cached
2014-10-26 09:47:10 +01:00
Uwe Tews
f7955513b2
Revert "- bugfix template function call handler must never be called as nocache code"
...
This reverts commit db183d1aa4 .
2014-10-24 00:09:45 +02:00
Uwe Tews
db183d1aa4
- bugfix template function call handler must never be called as nocache code
2014-10-23 19:05:25 +02:00
Uwe Tews
a22ee9f264
- bugfix E_NOTICE message was created during compilation when ASP tags '<%' or '%>' are in template source text
2014-10-23 18:27:12 +02:00
Uwe Tews
fc55a39d67
Update README.md
2014-10-23 18:13:05 +02:00
Uwe Tews
53c5e3fc4a
Added licence file and demo folder
2014-10-18 17:42:52 +02:00
Uwe Tews
cbc9ce927e
add composer release notes
2014-10-18 07:48:57 +02:00
Uwe Tews
c0a9a0449b
add composer release notes
2014-10-18 07:44:20 +02:00
Uwe Tews
16afbfaca1
Prepare 3.1.22-dev
2014-10-18 01:21:53 +02:00
Uwe Tews
1441f32fce
Upload 3.1.21
2014-10-18 01:19:29 +02:00
Uwe Tews
117d28f647
Upload 3.21
2014-10-18 01:17:22 +02:00
Uwe Tews
542892dded
Upload 3.1.21
2014-10-18 01:09:18 +02:00
Uwe Tews
024b336bea
Upload 3.1.20
2014-10-18 01:05:22 +02:00
Uwe Tews
7c6b3d21fa
revert
2014-10-18 01:01:36 +02:00
Uwe Tews
6cb40b8bcc
Upload 3.1.20
2014-10-18 00:55:00 +02:00
Uwe Tews
bdac1cb2e1
Upload 3.1.20
2014-10-18 00:53:39 +02:00
Uwe Tews
d26db3f717
Revert "Prepare 3.2.22-dev"
...
This reverts commit 451c62001d .
2014-10-18 00:45:38 +02:00
Uwe Tews
451c62001d
Prepare 3.2.22-dev
2014-10-18 00:38:59 +02:00
Uwe Tews
eb48f3bcea
Upload 3.1.21
2014-10-18 00:31:50 +02:00
Uwe Tews
0409ab005e
Upload version 3.1.20
2014-10-18 00:18:11 +02:00
uwetews
d091179e43
Initial commit
2014-10-17 19:51:33 +02:00
Uwe.Tews@googlemail.com
279bdbd352
- bugfix on $php_handling security and optimization of smarty_internal_parsetree (Thue Kristensen)
2014-10-16 22:53:22 +00:00
Uwe.Tews@googlemail.com
1c63d3a9fc
- bugfix composer.json update
2014-10-16 01:33:28 +00:00
Uwe.Tews@googlemail.com
b10b12165a
- bugfix calling a new created cache file with fetch() and Smarty::CACHING_LIFETIME_SAVED multiple times did fail (forum 22350)
2014-10-15 20:22:22 +00:00
Uwe.Tews@googlemail.com
dece63c5d7
- improvement cache is_file(file_exists) results of loadPlugin() to avoid unnecessary calls during compilation (Issue 201}
2014-10-14 22:29:58 +00:00
Uwe.Tews@googlemail.com
d9bc39da57
- bugfix classmap in root composer.json should start at "libs/..."
2014-10-14 21:59:49 +00:00
Uwe.Tews@googlemail.com
c77cc80a8c
- bugfix any tag placed within "<script language=php>" will throw a security exception to close all thinkable holes
2014-10-14 21:45:05 +00:00
Uwe.Tews@googlemail.com
4dde85a089
- bugfix "<script language=php>" with $php_handling PHP_PASSTHRU was executed in {nocache} sections
2014-10-12 15:57:16 +00:00
Uwe.Tews@googlemail.com
f03fc13bc9
- bugfix change of 08.10.2014 could create E_NOTICE meassage when using "<?php" tags
2014-10-12 15:09:52 +00:00
Uwe.Tews@googlemail.com
6af75db3c3
2014-10-12 14:11:34 +00:00
Uwe.Tews@googlemail.com
a1dac5a053
Switch trunk version to 3.1.21-dev
2014-10-10 17:12:39 +00:00
monte.ohrt
11e0cd566c
fix date format
2014-10-09 21:37:21 +00:00
monte.ohrt
d0673df7c2
update composer file
2014-10-09 21:29:46 +00:00
monte.ohrt
821456043b
update changelog
2014-10-09 21:23:23 +00:00
Uwe.Tews@googlemail.com
a7b4f6cdd9
2014-10-07 22:20:21 +00:00
Uwe.Tews@googlemail.com
6af4441f0e
- bugfix security mode of "<script language=php>" must be controlled by $php_handling property (Thue Kristensen)
2014-10-07 22:07:15 +00:00
monte.ohrt
795c3af692
update classmap
2014-10-02 15:48:56 +00:00
Uwe.Tews@googlemail.com
2a311c5473
- bugfix existing child {block} tag must override parent {block} tag append / prepend setting (topic 25259)
2014-10-01 21:03:40 +00:00
monte.ohrt
7add711ea0
add composer.json to dist folder
2014-10-01 18:57:34 +00:00
monte.ohrt
f57bb66746
revert move
2014-10-01 18:52:28 +00:00
monte.ohrt
2d3a853bce
move composer file
2014-10-01 18:50:11 +00:00
Uwe.Tews@googlemail.com
bbf0e42847
Fix typo's in Smarty_Security class comment and documentation
2014-10-01 17:15:24 +00:00
Uwe.Tews@googlemail.com
68b83f591d
- bugfix template resource of inheritance blocks could get invalid if the default resource type is not 'file'(Issue 202)
2014-09-30 23:20:56 +00:00
Uwe.Tews@googlemail.com
254230a5d5
Correct wording
2014-08-06 17:29:53 +00:00
Uwe.Tews@googlemail.com
95760bb537
fixed spelling
2014-08-02 15:39:02 +00:00
Uwe.Tews@googlemail.com
9307f0cfcb
- bugfix modifier wordwrap did output break string wrong if first word was exceeding lenght with cut = true (topic 25193)
2014-08-02 15:24:28 +00:00
monte.ohrt
9b06625c74
update changelog
2014-07-24 15:10:55 +00:00
monte.ohrt
fcece85062
fix issue where cache dir does not exist
...
-This line, and those below, will be ignored--
M distribution/libs/sysplugins/smarty_internal_cacheresource_file.php
2014-07-24 15:08:32 +00:00
Uwe.Tews@googlemail.com
071f9af42f
anchor BOM regex to front of file
2014-07-16 21:40:57 +00:00
Uwe.Tews@googlemail.com
77292d394a
- enhancement remove BOM automatically from template source (topic 25161)
2014-07-16 18:21:25 +00:00
Uwe.Tews@googlemail.com
c2bba29216
- bugfix the bufix of 02.06.2014 broke correct handling of child templates with same name but different template folders in extends resource (issue 194 and topic 25099)
2014-07-03 23:16:23 +00:00
monte.ohrt
4b3e1eb89d
fix url in comment
2014-07-01 19:33:25 +00:00
monte.ohrt
84a2b19447
update version
2014-07-01 05:20:41 +00:00
Uwe.Tews@googlemail.com
fb28ee9d2e
- bugfix template variables could not be passed as paramter in {include} when the include was in a {nocache} section (topic 25131)
2014-06-21 08:56:11 +00:00
Uwe.Tews@googlemail.com
a75e36b357
- bugfix template variables could not be passed as paramter in {include} when the include was in a {nocache} section (topic 25131)
2014-06-21 08:53:38 +00:00
Uwe.Tews@googlemail.com
ee69f963c6
- bugfix large template text of some charsets could cause parsing errors (topic 24630)
2014-06-17 20:24:20 +00:00
Uwe.Tews@googlemail.com
0e1f7fdcfc
- bugfix {html_image} security check did fail on files relative to basedir (Issue 191)
2014-06-08 19:03:39 +00:00
Uwe.Tews@googlemail.com
7ca939f47b
- bugfix UNC WINDOWS PATH like "\\psf\path\to\dir" did not work as template directory (Issue 192)
2014-06-08 18:12:09 +00:00
Uwe.Tews@googlemail.com
ee4a77b797
upload reformatted versions
2014-06-08 16:00:56 +00:00
Uwe.Tews@googlemail.com
e5dd155809
- bugfix {block} tags within {literal} .. {/literal} got not displayed correctly (topic 25024)
2014-06-08 15:52:08 +00:00
Uwe.Tews@googlemail.com
642c071437
- bugfix registered objects did not work after spelling fixes of 006.06.2014
2014-06-08 15:43:02 +00:00
Uwe.Tews@googlemail.com
425091a19f
- fixed spelling, PHPDoc , minor errors, code cleanup
2014-06-06 02:40:04 +00:00
Uwe.Tews@googlemail.com
ca6a908c83
- fixed PHPUnit outputFilterTrimWhitespaceTests.php assertion of test result
2014-06-05 22:58:58 +00:00
Uwe.Tews@googlemail.com
3a124b4a56
Rename release note file
2014-06-02 20:11:09 +00:00
Uwe.Tews@googlemail.com
2c5ce49b97
- using multiple cwd with relative template dirs could result in identical compiled file names. (issue 194 and topic 25099)
2014-06-02 19:56:38 +00:00
Uwe.Tews@googlemail.com
c7071d9d2c
- bugfix clearCompiledTemplate() did not delete files on WINDOWS when a compile_id was specified
2014-04-19 13:53:20 +00:00
Uwe.Tews@googlemail.com
8658b04c86
bugfix calling createTemplate(template, data) with empty data array caused notice of array to string conversion (Issue 189)
2014-04-19 11:42:11 +00:00
Uwe.Tews@googlemail.com
d6c1482996
fixed typos
2014-04-18 08:13:32 +00:00
Uwe.Tews@googlemail.com
608dddc19a
2014-04-18 08:09:38 +00:00
Uwe.Tews@googlemail.com
a613394887
Update dev version number to 3.1.19-dev
2014-04-07 19:57:42 +00:00
monte.ohrt
f67473f085
update to 3.1.18
2014-04-07 18:30:41 +00:00
Uwe.Tews@googlemail.com
00c919dcc2
bugfix update of composer file (Issue 168 and 184)
2014-04-06 19:06:32 +00:00
Uwe.Tews@googlemail.com
668bc16717
- bugfix template inheritance fail when using custom resource after patch of 8.3.2014 (Issue 187)
2014-04-06 18:50:39 +00:00
Uwe.Tews@googlemail.com
79d67afb0f
- bugfix default date format leads to extra spaces when displaying dates with single digit days (Issue 182)
2014-04-04 23:38:36 +00:00
Uwe.Tews@googlemail.com
58982caf27
- bugfix Smart_Resource_Custom should not lowercase the resource name (Issue 183)
2014-03-26 20:33:03 +00:00
Uwe.Tews@googlemail.com
474e863af1
- bugfix using a {foreach} property like @iteration could fail when used in inheritance parent templates (Issue 182)
2014-03-24 18:52:29 +00:00
Uwe.Tews@googlemail.com
478db521c9
- bugfix $smarty->auto_literal and mbsting.func_overload 2, 6 or 7 did fail (forum topic 24899)
2014-03-20 22:07:26 +00:00
Uwe.Tews@googlemail.com
7dec7d9963
- revert change of 17.03.2014
2014-03-18 18:22:33 +00:00
Uwe.Tews@googlemail.com
d82d54bffd
fix line endings
2014-03-17 21:57:15 +00:00
Uwe.Tews@googlemail.com
45fc4cd729
- bugfix $smarty->auto_literal and mbsting.func_overload 2, 6 or 7 did fail (forum topic 24899)
2014-03-17 19:04:48 +00:00
Uwe.Tews@googlemail.com
ad62b0b2f8
- bugfix Smarty_CacheResource_Keyvaluestore did use different keys on read/writes and clearCache() calls (Issue 169)
2014-03-15 21:43:04 +00:00
Uwe.Tews@googlemail.com
3d4d35f4d7
- bugfix clearXxx() change of 27.1.2014 did not work when specifing cache_id or compile_id (forum topic 24868 and 24867)
2014-03-13 20:32:39 +00:00
monte.ohrt
40acefe91b
update changelog
2014-03-12 19:50:58 +00:00
Uwe.Tews@googlemail.com
af13907219
08.03.2014
...
- bugfix relative file path {include} within {block} of child templates did throw exception on first call (Issue 177)
2014-03-08 23:03:08 +00:00
Uwe.Tews@googlemail.com
f06013927c
- bugfix Smarty failed when executing PHP on HHVM (Hip Hop 2.4) because uniqid('',true) does return string with ',' (forum topic 20343)
2014-02-17 18:21:31 +00:00
Uwe.Tews@googlemail.com
bfa0ce8ba4
- bugfix a '//' or '\\' in template_dir path could produce wrong path on relative filepath in {include} (Issue 175)
2014-02-16 18:34:08 +00:00
Uwe.Tews@googlemail.com
f242ce30fb
- bugfix shared.literal_compiler_param.php did throw an exception when literal did contain a '-' (smarty-developers group)
2014-02-05 19:39:21 +00:00
Uwe.Tews@googlemail.com
ba2996fef5
- bugfix clearCompiledTemplate(), clearAll() and clear() should use realpath to avoid possible exception from RecursiveDirectoryIterator (Issue 171)
2014-01-27 16:35:56 +00:00
Uwe.Tews@googlemail.com
79dfde4977
- bugfix $smarty->debugging = true; did show the variable of the $smarty object not the variables used in display() call (forum topic 24764)
2014-01-27 16:08:55 +00:00
Uwe.Tews@googlemail.com
0e03ba5b61
- bugfix undo block nesting checks for {nocache} for reasons like forum topic 23280 (forum topic 24762)
2014-01-26 20:11:19 +00:00
Uwe.Tews@googlemail.com
290dd3f73f
- bugfix the compiler did fail when using template inheritance and recursive {include} (smarty-developers group)
2014-01-18 14:43:02 +00:00
Uwe.Tews@googlemail.com
1dfbe19ebf
- internals content cache should be clear when updating cache file
2014-01-11 12:21:12 +00:00
Uwe.Tews@googlemail.com
18ff092501
2014-01-11 12:15:37 +00:00
Uwe.Tews@googlemail.com
54d5d949de
- bugfix SmartyBC.class.php should use require_once to load Smarty.class.php (forum topic 24683)
2014-01-08 21:16:06 +00:00
Uwe.Tews@googlemail.com
797bd37c5f
- bugfix Smarty_CacheResource_Custom did not handle template resource type specifications on clearCache() calls (Issue 161)
2014-01-08 21:05:58 +00:00
monte.ohrt
fa09638f95
update changelog
2013-12-17 16:06:12 +00:00
Uwe.Tews@googlemail.com
a0a24e1975
- enhancement additional debug output at $smarty->_parserdebug = true;
2013-12-15 15:25:50 +00:00
Uwe.Tews@googlemail.com
7f88dcd31f
- bugfix {include} with {block} tag handling (forum topic 24599, 24594, 24682) (Issue 161)
...
Read 3.1.16_RELEASE_NOTES for more details
2013-12-15 15:19:01 +00:00
Uwe.Tews@googlemail.com
6abc9ea0d3
- bugfix compiler could fail if PHP mbstring.func_overload is enabled (Issue 164)
2013-11-07 20:00:56 +00:00
Uwe.Tews@googlemail.com
4e1f7b1568
- bugfix too restrictive handling of {include} within {block} tags. 3.1.15 did throw errors where 3.1.14 did not (forum topic 24599)
2013-11-07 19:09:37 +00:00
Uwe.Tews@googlemail.com
c8996a4085
- bugfix multiple {block}s with same name in parent did not work (forum topic 24631)
2013-10-29 00:40:14 +00:00
Uwe.Tews@googlemail.com
5dc4b61771
- bugfix correction of modifier capitalize fix from 3.10.2013 (issue 159)
2013-10-28 23:56:41 +00:00
Uwe.Tews@googlemail.com
c3e6823f5d
- bugfix notice "Trying to get property of non-object" removed (Issue 163)
2013-10-28 23:53:01 +00:00
Uwe.Tews@googlemail.com
26e4a5120e
- bugfix variable resource name at custom resource plugin did not work within {block} tags (Issue 163)
2013-10-28 18:24:01 +00:00
Uwe.Tews@googlemail.com
8342cf45f3
- bugfix a variable file name at {extends} tag did fail (forum topic 24618)
2013-10-20 15:27:35 +00:00
Uwe.Tews@googlemail.com
fccd80818b
- bugfix yesterdays fix could result in an undefined variable
2013-10-14 07:47:49 +00:00
Uwe.Tews@googlemail.com
c3994f4006
.- bugfix relative includes with same name like {include './foo.tpl'} from different folder failed (forum topic 24590)(Issue 161)
2013-10-13 17:49:38 +00:00
Uwe.Tews@googlemail.com
cd6c1c2ff8
bugfix variable names on {include} in template inheritance did unextepted error message (forum topic 24585) (Issue 161)
2013-10-13 12:48:07 +00:00
Uwe.Tews@googlemail.com
51453d196b
- bugfix variable file names at {extends} had been disbabled by mistake with the rewrite of
...
template inheritance of 24.08.2013 (forum topic 24585)
2013-10-04 08:47:46 +00:00
Uwe.Tews@googlemail.com
655a2d9301
- bugfix loops using modifier capitalize did eat up memory (issue 159)
2013-10-03 09:16:27 +00:00
monte.ohrt
3281c14769
update change log
2013-10-01 19:35:02 +00:00
Uwe.Tews@googlemail.com
953f6f5a14
- improvement on performance when using error handler and multiple template folders (issue 152)
2013-10-01 18:56:49 +00:00
Uwe.Tews@googlemail.com
51ee8c4ad9
- use current delimiters in compiler error messages (issue 157)
2013-10-01 18:48:29 +00:00
Uwe.Tews@googlemail.com
5bbfbafc47
- improvement added patch for additional SmartyCompilerException properties for better access to scource information (forum topic 24559)
2013-09-17 20:44:41 +00:00
Uwe.Tews@googlemail.com
bf8275ee20
- bugfix recompiled templates did not show on first request with zend opcache cache (forum topic 24320)
2013-09-16 18:47:04 +00:00
Uwe.Tews@googlemail.com
a0dcb5611b
- bugfix html_select_time defaulting error for the Meridian dropdown (forum topic 24549)
2013-09-13 20:48:40 +00:00
Uwe.Tews@googlemail.com
0d9f9802db
- bugfix incorrect compiled code with array(object,method) callback at registered Variable Filter (forum topic 24542}
2013-09-09 16:10:13 +00:00
Uwe.Tews@googlemail.com
70d5af437e
fixed spelling
2013-09-03 16:20:04 +00:00
Uwe.Tews@googlemail.com
96c2a9c71a
- bugfix delimiter followed by linebreak did not work as auto literak after update form 24.08.2013 (forum topic 24518}
2013-08-27 19:42:38 +00:00
Uwe.Tews@googlemail.com
98c1dd29cd
- bugfix and enhancement
...
Because several recent problems with template inheritance the {block} tag compiler has been rewriten
- Error messages shown now the correct child template file and line number
- The compiler could fail on some larger UTF-8 text block (forum topic 24455}
- The {strip} tag can now be placed outside {block} tags in child templates (forum topic 24289}
- change SmartyException::$escape is now false by default
- change PHP traceback has been remove for SmartyException and SmartyCompilerException
2013-08-24 18:46:31 +00:00
Uwe.Tews@googlemail.com
e206ba63f0
- bugfix compiled filepath of config file did not observe different config_dir (forum topic 24493)
2013-08-14 19:38:03 +00:00
Uwe.Tews@googlemail.com
e9601e1d6d
- bugfix avoid possible E_STRICT error after bugfix for (forum topic 24493)
2013-08-13 23:03:28 +00:00
Uwe.Tews@googlemail.com
3ad903ad21
- bugfix the internal resource cache did not observe config_dir changes (forum topic 24493)
2013-08-13 20:54:59 +00:00
Uwe.Tews@googlemail.com
518ffca6f5
- bugfix internal $tmpx variables must be unique over all inheritance templates (Issue 149)
2013-08-12 21:09:29 +00:00
Uwe.Tews@googlemail.com
35d2e254bb
- bugfix a newline was eaten when a <?xml ... ?> was passed by a Smarty variable and caching was enabled (forum topic 24482)
2013-08-10 09:55:27 +00:00
Uwe.Tews@googlemail.com
6d88d33c5b
- bugfix headers already send warning thrown when using 'SMARTY_DEBUG=on' from URL (Issue 148)
2013-07-29 13:58:08 +00:00
Uwe.Tews@googlemail.com
6851c57ef8
- enhancement allow access to properties of registered opjects for Smarty2 BC (forum topic 24344)
2013-07-27 10:06:43 +00:00
Uwe.Tews@googlemail.com
e62dcaa6a9
- enhancement allow access to properties of registered opjects for Smarty2 BC (forum topic 24344)
2013-07-27 09:48:42 +00:00
Uwe.Tews@googlemail.com
697696fef9
Source code reformatted
2013-07-27 07:05:26 +00:00
Uwe.Tews@googlemail.com
f83eba920d
- bugfix template inheritance nesting problem (forum topic 24387)
2013-07-26 13:50:44 +00:00
Uwe.Tews@googlemail.com
584886cb1c
- update code generated by PSR-2 standards fixer which introduced PHP 5.4 incompatibilities of 14.7.2013
2013-07-15 18:18:28 +00:00
Uwe.Tews@googlemail.com
00ccae8857
- update for PHP 5.4 compatibility
...
- reformat source to PSR-2 standard
2013-07-14 22:15:45 +00:00
Uwe.Tews@googlemail.com
f99e6a83ce
- bugfix increase of internal maximum parser stacksize to allow more complex tag code {forum topic 24426}
2013-07-14 21:12:08 +00:00
Uwe.Tews@googlemail.com
917f92d38b
- bugfix Do not remove '//' from file path at normalization (Issue 142)
2013-07-12 00:16:43 +00:00
monte.ohrt
a74d8d5416
update change log
2013-07-02 14:16:49 +00:00
monte.ohrt
a0f26a96cc
fix order of replacements (mohrt)
2013-07-02 14:11:12 +00:00
monte.ohrt
739688a454
update change log
2013-06-28 02:02:53 +00:00
Uwe.Tews@googlemail.com
0643bf9808
- bugfix removed PHP 5.5 deprecated preg_replace /e option in modifier capitalize (forum topic 24389)
2013-06-26 22:21:17 +00:00
Uwe.Tews@googlemail.com
b7d4796400
- bugfix added smarty_security.php to composer.json (Issue 135)
2013-06-17 13:48:22 +00:00
Uwe.Tews@googlemail.com
338e7c5d56
- enhancement added constant SMARTY::CLEAR_EXPIRED for the change of 26.05.2013 (forum topic 24310)
2013-06-17 13:30:49 +00:00
Uwe.Tews@googlemail.com
b0b2c0e86d
17.06.2013
...
- fixed spelling in sources and documentation (from smarty-developers forum Veres Lajos)
2013-06-17 12:34:10 +00:00
Uwe.Tews@googlemail.com
00c034b593
- enhancement an expire_time of -1 in clearCache() and clearAllCache() will delete outdated cache files
...
by their individual cache_lifetime used at creation (forum topic 24310)
2013-05-26 10:50:13 +00:00
Uwe.Tews@googlemail.com
6b5b06564f
- bugfix modifier strip_tags:true was compiled into wrong code (Forum Topic 24287)
...
- bugfix /n after ?> in Smarty.class.php did start output buffering (Issue 138)
2013-05-21 21:01:23 +00:00
Uwe.Tews@googlemail.com
8e2d249233
- bugfix escape and wordrap modifier could be compiled into wrong code when used in {nocache}{/nocache}
...
section but caching is disabled (Forum Topic 24260)
2013-04-25 15:20:13 +00:00
Uwe.Tews@googlemail.com
f074a20ed5
- bugfix after the fix for Issue #130 compiler exceptions got double escaped (Forum Topic 24199)
2013-04-05 22:19:13 +00:00
Uwe.Tews@googlemail.com
58f2227cce
- bugfix post filter must not run when compiling inheritance child blocks (Forum Topic 24094)
2013-04-05 21:19:28 +00:00
uwe.tews@googlemail.com
c3319fc5ca
fixed date
2013-02-28 19:41:00 +00:00
uwe.tews@googlemail.com
6612fa6d8b
- bugfix Compile ID gets nulled when compiling child blocks (Issue #134 )
2013-02-28 19:23:04 +00:00
uwe.tews@googlemail.com
bd8af7c5cb
- bugfix nocache blocks could be lost when using CACHING_LIFETIME_SAVED (Issue #133 )
2013-02-28 19:17:26 +00:00
uwe.tews@googlemail.com
2140439352
- bugfix wrong tag type in smarty_internal_templatecompilerbase.php could cause wrong plugin search order (Forum Topic 24028)
2013-01-24 19:16:41 +00:00
monte.ohrt
6148053a15
update changelog
2013-01-16 02:07:15 +00:00
uwe.tews@googlemail.com
73c7b32c83
13.01.2013
...
- enhancement allow to disable exception message escaping by SmartyException::$escape = false; (Issue #130 )
2013-01-13 21:13:14 +00:00
uwe.tews@googlemail.com
af4735193e
- added abstract method declaration doCompile() in Smarty_Internal_TemplateCompilerBase (Forum Topic 23969)
2013-01-09 23:54:31 +00:00
uwe.tews@googlemail.com
993a2eac70
- enhancement to allow variable constant names like {$smarty.const.{$foo}} (Forum Topic 23970)
2013-01-09 23:35:40 +00:00
uwe.tews@googlemail.com
285a535346
- bugfix template inheritance could fail if nested {block} tags in childs did contain {$smarty.block.child} (Issue #127 )
...
- bugfix template inheritance could fail if {block} tags in childs did have similar name as used plugins (Issue #128 )
2013-01-09 23:05:09 +00:00
uwe.tews@googlemail.com
2f83a70627
- bugfix compilation did fail when a prefilter did modify an {extends} tag (Forum Topic 23966)
2013-01-09 00:05:07 +00:00
uwe.tews@googlemail.com
b24eada147
- Allow '://' URL syntax in template names of stream resources (Issue #129 )
2013-01-06 19:22:48 +00:00
uwe.tews@googlemail.com
6ebd099041
- bugfix wrong variable usage in smarty_internal_utility.php (Issue #125 )
2012-11-27 13:37:35 +00:00
uwe.tews@googlemail.com
88693d327a
- bugfix global variable assigned within template function are not seen after template function exit (Forum Topic 23800)
2012-11-26 20:11:10 +00:00
rodneyrehm
9c6bda43d0
made SmartyBC loadable via composer (Issue #124 )
2012-11-24 10:45:38 +00:00
uwe.tews@googlemail.com
27be6508bd
- bugfix assignGlobal() called from plugins did not work (Forum Topic 23771)
2012-11-20 02:06:20 +00:00
rodneyrehm
b8f0d3bacb
- adding attribute "strict" to html_options, html_checkboxes, html_radios to only print disabled/readonly attributes if their values are true or "disabled"/"readonly" (Issue #120 )
2012-11-13 18:31:48 +00:00
rodneyrehm
642e021f45
Fixing Issue #118 - muteExpectedErrors would fail non-readable directories
2012-11-01 10:10:10 +00:00
monte.ohrt
3204262e0f
update change log
2012-09-25 19:03:40 +00:00
uwe.tews@googlemail.com
191a13b623
- bugfix template inheritance failed to compile with delimiters {/ and /} (Forum Topic 23008)
2012-09-14 14:42:15 +00:00
uwe.tews@googlemail.com
4305a8931c
- bugfix escape Smarty exception messages to avoid possible script execution
2012-09-11 16:23:30 +00:00
uwe.tews@googlemail.com
81a6d0869b
- bugfix tag option flags and shorttag attributes did not work when rdel started with '=' (Forum Topic 22979)
2012-09-10 22:04:03 +00:00
rodneyrehm
9ef8d6045f
bugfix resolving relative paths broke in some circumstances (Issue #114 )
2012-08-31 19:39:28 +00:00
rodneyrehm
98c9862de4
- bugfix test MBString availability through mb_split(), as it could've been compiled without regex support (--enable-mbregex). Either we get MBstring's full package, or we pretend it's not there at all.
2012-08-22 20:45:22 +00:00
uwe.tews@googlemail.com
b70b06aa20
- bugfix $auto_literal = false did not work with { block} tags in child templates
...
(problem was reintroduced after fix in 3.1.7)(Forum Topic 20581)
2012-08-21 21:54:30 +00:00
uwe.tews@googlemail.com
9d34e78d0b
17.08.2012
...
- bugfix compiled code of nocache sections could contain wrong escaping (Forum Topic 22810)
2012-08-17 11:19:16 +00:00
uwe.tews@googlemail.com
090ba8e7c5
- bugfix template inheritance did produce wrong code if subtemplates with {block} was
...
included several times (from smarty-developers forum)
2012-08-15 15:09:12 +00:00
rodneyrehm
b977381e4e
bugfix PHP5.2 compatibility compromised by SplFileInfo::getBasename() (Issue 110)
2012-08-14 13:22:34 +00:00
rodneyrehm
b921a7657d
fixing typo in comments
2012-08-14 13:18:24 +00:00
uwe.tews@googlemail.com
b069c08eb4
- bugfix avoid PHP error on $smarty->configLoad(...) with invalid section specification (Forum Topic 22608)
2012-08-01 21:31:24 +00:00
uwe.tews@googlemail.com
897d40fe5c
-bugfix {assign} in a nocache section should not overwrite existing variable values
...
during compilation (issue 109)
2012-07-30 20:07:51 +00:00
uwe.tews@googlemail.com
50b3a4f070
28.07.2012
...
- bugfix array access of config variables did not work (Forum Topic 22527)
2012-07-28 08:10:04 +00:00
uwe.tews@googlemail.com
942db98f0c
- bugfix the default plugin handler did create wrong compiled code for static class methods
...
from external script files (issue 108)
2012-07-18 22:31:56 +00:00
monte.ohrt
c6f25b466d
update changelog
2012-06-30 21:20:53 +00:00
uwe.tews@googlemail.com
ab1cdc8d84
- bugfix {block.. hide} did not work as nested child (Forum Topic 22216)
2012-06-30 15:53:22 +00:00
rodneyrehm
79087f409f
<script><!-- … is bad practice and should not be encouraged.
2012-06-28 20:13:17 +00:00
uwe.tews@googlemail.com
d59870d557
- bugfix the default plugin handler did not allow static class methods for modifier (issue 85)
2012-06-25 21:46:17 +00:00
rodneyrehm
fc8e4767ca
bugfix escape modifier support for PHP < 5.2.3 (Forum Topic 21176)
2012-06-24 18:15:58 +00:00
uwe.tews@googlemail.com
7be2c1fded
- bugfix the patch for Topic 21856 did break tabs between tag attributes (Forum Topic 22124)
2012-06-11 18:14:41 +00:00
monte.ohrt
c3d4693604
update changelog
2012-06-09 15:57:26 +00:00
uwe.tews@googlemail.com
766d3f04a2
- bugfix the patch for Topic 21856 did break multiline tags (Forum Topic 22124)
2012-06-09 14:27:25 +00:00
uwe.tews@googlemail.com
42d2ee98dd
09.06.2012
...
- bugfix the compiler did ignore registered compiler plugins for closing tags (Forum Topic 22094)
2012-06-09 14:00:57 +00:00
monte.ohrt
7133a3c85c
update change log
2012-06-08 20:44:17 +00:00
rodneyrehm
dd6d9b159e
bugfix treat "0000-00-00" as 0 in modifier.date_format (Issue 103)
2012-06-07 13:01:58 +00:00
rodneyrehm
a37492e04a
bugfix fetch() and display() with relative paths (Issue 104)
2012-06-07 12:54:02 +00:00
uwe.tews@googlemail.com
179c62e4ef
- bugfix add compile_id to cache key of of source (Issue 97)
2012-05-24 17:03:31 +00:00
uwe.tews@googlemail.com
35a68ed535
- bugfix attribute parameter names of plugins may now contain also "-" and ":" (Forum Topic 21856)
2012-05-24 16:01:19 +00:00
rodneyrehm
8f831024ce
bugfix Smarty_Internal_Write_File::writeFile() could cause race-conditions on linux systems (Issue 101)
2012-05-24 15:13:19 +00:00
uwe.tews@googlemail.com
bc2622bf94
- bugfix recursive {include} within {section} did fail (Smarty developer group)
2012-05-22 21:00:47 +00:00
rodneyrehm
b27fc84447
bugfix {html_options} did not properly escape values (Issue 98)
2012-05-12 10:59:49 +00:00
uwe.tews@googlemail.com
208ad6b540
2012-05-03 16:17:39 +00:00
uwe.tews@googlemail.com
9e5eed4733
- bugfix {nocache}{block}{plugin}... did produce wrong compiled code when caching is disabled (Forum Topic 21572, issue 95)
2012-05-02 17:19:33 +00:00
uwe.tews@googlemail.com
8c3bcf9eef
- bugfix concurrent cache updates could create a warning (Forum Topic 21403)
2012-04-12 16:55:35 +00:00
uwe.tews@googlemail.com
4c86e72faa
- Smarty did eat the linebreak after the <?xml...?> closing tag (Issue 93)
2012-04-12 15:43:06 +00:00
uwe.tews@googlemail.com
409e39c4ec
- bugfix "\\" was not escaped correctly when generation nocache code (Forum Topic 21364)
2012-04-08 12:08:48 +00:00
uwe.tews@googlemail.com
8d60164201
2012-03-30 14:21:16 +00:00
uwe.tews@googlemail.com
0364e35e7d
- bugfix implement Smarty2's behaviour of variables assigned by reference in SmartyBC. {assign} will affect all references.
...
(issue 88)
2012-03-27 17:07:32 +00:00
uwe.tews@googlemail.com
d157cac590
- bugfix prefilter did run multiple times on inline subtemplates compiled into several main templates (Forum Topic 21325)
2012-03-27 14:44:46 +00:00
uwe.tews@googlemail.com
9079b1d890
- bugfix compileAllTemplates() and compileAllConfig() did not return the number of compiled files (Forum Topic 21286)
2012-03-21 17:18:51 +00:00
uwe.tews@googlemail.com
e2b14e7c19
- correction of yesterdays bugfix (Forum Topic 21175 and 21182)
2012-03-13 18:10:00 +00:00
uwe.tews@googlemail.com
62f01f29e5
- bugfix template inheritance did set $merge_compiled_includes globally true
2012-03-12 19:29:10 +00:00
uwe.tews@googlemail.com
a7f7267b04
- bugfix a double quoted string of "$foo" did not compile into PHP "$foo" (Forum Topic 21175)
2012-03-12 19:25:30 +00:00
uwe.tews@googlemail.com
065db28777
- optimization of compiling speed when same modifier was used several times
2012-03-03 14:10:39 +00:00
uwe.tews@googlemail.com
f6769036f1
- enhancement the default plugin handler can now also resolve undefined modifier (Smarty::PLUGIN_MODIFIER)
...
(Issue 85)
2012-03-02 20:26:38 +00:00
monte.ohrt
902e8e6e15
update changelog
2012-02-20 16:26:49 +00:00
uwe.tews@googlemail.com
e134e54820
- enhancement added Smarty special variable $smarty.template_object to return the current template object (Forum Topic 20289)
2012-02-19 18:53:10 +00:00
uwe.tews@googlemail.com
d0ad3df670
- bugfix {include} could result in a fatal error if used in appended or prepended nested {block} tags
...
(reported by mh and Issue 83)
2012-02-19 15:48:05 +00:00
uwe.tews@googlemail.com
c000b3a480
- enhancement cacheable parameter added to default plugin handler, same functionality as in registerPlugin (request by calguy1000)
2012-02-07 21:55:37 +00:00
uwe.tews@googlemail.com
820e0e70d8
- bugfix increase entropy of internal function names in compiled and cached template files (Forum Topic 20996)
2012-02-07 18:54:06 +00:00
uwe.tews@googlemail.com
53df807220
- improvement replaced some calls of preg_replace with str_replace (Issue 73)
2012-02-06 20:53:57 +00:00
rodneyrehm
e91ee4c5ec
improved include_path resolving
2012-02-06 20:45:10 +00:00
rodneyrehm
0f39bdfd59
added modifier unescape:"url", fix (Forum Topic 20980)
2012-02-06 20:33:07 +00:00
rodneyrehm
6d90cd3fd7
bugfix fetch('extends:foo.tpl') always yielded $source->exists == true (Forum Topic 20980)
2012-02-06 20:18:47 +00:00
rodneyrehm
8f805ca871
todo
2012-02-06 20:17:49 +00:00
rodneyrehm
b9bae74db6
improvement stream_resolve_include_path() added to Smarty_Internal_Get_Include_Path (Forum Topic 20980)
2012-02-06 20:17:32 +00:00
rodneyrehm
f009a80a74
typos
2012-01-30 11:39:04 +00:00
rodneyrehm
26eac9888d
bugfix Smarty_Security internal $_resource_dir cache wasn't properly propagated
2012-01-30 11:31:34 +00:00
uwe.tews@googlemail.com
9419a999c9
2012-01-27 19:30:53 +00:00
uwe.tews@googlemail.com
d8b26c5ad0
- bugfix output filter must not run before writing cache when template does contain nocache code {Issue 71}
2012-01-20 18:21:32 +00:00
uwe.tews@googlemail.com
1e2fb8fbbe
- fixed typo in template parser
2012-01-20 14:52:50 +00:00
uwe.tews@googlemail.com
c352723ec9
- bugfix typo in Smarty_Internal_Get_IncludePath did cause runtime overhead (Issue 74)
...
- improvment remove unneeded assigments (Issue 75 and 76)
2012-01-20 14:47:01 +00:00
uwe.tews@googlemail.com
b38be6edaa
- bugfix {block foo nocache} did not load plugins within child {block} in nocache mode (Forum Topic 20753)
2012-01-02 20:49:26 +00:00
uwe.tews@googlemail.com
1b25005d42
- bugfix embedded quotes in single quoted strings did not compile correctly in {nocache} sections (Forum Topic 20730)
2011-12-29 18:44:09 +00:00
rodneyrehm
3d409db9b1
typo
2011-12-29 13:32:40 +00:00
rodneyrehm
ec99ee7ee6
- bugfix enable more entropy in Smarty_Internal_Write_File for "more uniqueness" and Cygwin compatibility
2011-12-29 13:30:09 +00:00
uwe.tews@googlemail.com
05f17be99a
- bugfix Smarty's internal header code must be excluded from postfilters (issue 71)
2011-12-28 18:51:20 +00:00
uwe.tews@googlemail.com
d6abd3155d
- bugfix template inheritace did fail if mbstring.func_overload != 0 (issue 70) (Forum Topic 20680)
2011-12-22 19:37:44 +00:00
uwe.tews@googlemail.com
44f7651eb2
- bugfix the new lexer of 17.12.2011 did fail if mbstring.func_overload != 0 (issue 70) (Forum Topic 20680)
2011-12-22 16:33:12 +00:00
uwe.tews@googlemail.com
04c1b32a81
adjust formatting
2011-12-20 17:50:15 +00:00
uwe.tews@googlemail.com
ea567850b0
- bugfix template inheritance: {$smarty.block.child} in nested child {block} tags did not return
...
content after {$smarty.block.child} (Forum Topic 20564)
2011-12-20 15:52:59 +00:00
monte.ohrt
dae58ebd3e
update changelog
2011-12-19 22:12:28 +00:00
rodneyrehm
ac2e0dcde5
typo
2011-12-19 21:53:53 +00:00
rodneyrehm
6f2c439455
(typo)
2011-12-19 07:56:12 +00:00
rodneyrehm
2c25a64dd3
- added Smarty_Security::isTrustedUri() and Smarty_Security::$trusted_uri to validate remote resource calls through {fetch} and {html_image} (Forum Topic 20627)
2011-12-18 22:21:49 +00:00
rodneyrehm
df60ed94fa
(typos)
2011-12-18 18:51:04 +00:00
rodneyrehm
52754a1a47
- added Smarty::$_UTF8_MODIFIER for proper PCRE charset handling (Forum Topic 20452)
2011-12-18 18:48:07 +00:00
rodneyrehm
d645ad2ea1
- changed internals to use Smarty::$_MBSTRING ($_CHARSET, $_DATE_FORMAT) for better unit testing
2011-12-18 18:20:09 +00:00
rodneyrehm
75c271079d
stashing PCRE modifications
2011-12-18 17:21:44 +00:00
rodneyrehm
23a924cebe
(phpdoc indentation)
2011-12-18 16:55:28 +00:00
rodneyrehm
3495b683bd
(phpdoc indentation)
2011-12-18 16:52:26 +00:00
rodneyrehm
9be91eb04b
- added chaining to Smarty_Internal_Templatebase
...
- changed unloadFilter() to not return a boolean in favor of chaining and API conformity
- bugfix unregisterObject() raised notice when object to unregister did not exist
2011-12-18 16:51:32 +00:00
uwe.tews@googlemail.com
d0b6b69f7c
- bufix strings ending with " in multiline strings of config files failed to compile {isse 67)
2011-12-18 15:39:51 +00:00
uwe.tews@googlemail.com
6c17076d19
- improvement of compiling speed by new handling of plain text blocks in the lexer/parser (issue 68)
2011-12-17 14:23:31 +00:00
uwe.tews@googlemail.com
e439c13a3e
- bugfix the source exits flag and timestamp was not setup when temple is in php include path (issue 69)
2011-12-16 17:00:51 +00:00
uwe.tews@googlemail.com
36ec5acb0d
- bugfix {capture} tags around recursive {include} calls did throw exception (Forum Topic 20549)
...
- bugfix $auto_literal = false did not work with { block} tags in child templates (Forum Topic 20581)
- bugfix template inheritance: do not include code of {include} in overloaded {block} into compiled
parent template (Issue 66}
- bugfix template inheritance: {$smarty.block.child} in nested child {block} tags did not return expected
result (Forum Topic 20564)
2011-12-09 22:05:16 +00:00
monte.ohrt
0455f90c8d
update changelog, fix dev version number
2011-12-01 15:34:04 +00:00
uwe.tews@googlemail.com
678b28769d
- bugfix is_cache() for individual cached subtemplates with $smarty->caching = CACHING_OFF did produce
...
an exception (Forum Topic 20531)
2011-11-30 16:31:25 +00:00
uwe.tews@googlemail.com
f14c4bfb9c
- bugfix added exception if the default plugin handler did return a not static callback (Forum Topic 20512)
2011-11-29 17:47:37 +00:00
uwe.tews@googlemail.com
fe68b976e8
- bugfix {html_select_date} and {html_slecet_time} did not default to current time if "time" was not specified
...
since r4432 (issue 60)
2011-11-25 17:06:30 +00:00
uwe.tews@googlemail.com
e8a933e8e0
- bugfix a subtemplate later used as main template did use old variable values
2011-11-24 21:08:26 +00:00
uwe.tews@googlemail.com
8b414e3b8a
- bugfix cache file could include unneeded modifier plugins under certain condition
2011-11-21 00:37:33 +00:00
uwe.tews@googlemail.com
8f732cc4b6
- bugfix declare all directory properties private to map direct access to getter/setter also on extended Smarty class
2011-11-18 15:32:17 +00:00
rodneyrehm
3d03494a74
- added escape argument to html_checkboxes and html_radios (Forum Topic 20425)
2011-11-16 11:28:35 +00:00
rodneyrehm
0fb537aed2
- bugfix Smarty_Resource::load() did not always return a proper resource handler (Forum Topic 20414)
2011-11-16 08:25:33 +00:00
monte.ohrt
0c368eb1bb
update changelog
2011-11-14 17:58:52 +00:00
uwe.tews@googlemail.com
4b7de63dc5
- bugfix allow space between function name and open bracket (forum topic 20375)
2011-11-14 17:14:28 +00:00
monte.ohrt
55fc3b1bc7
fix typos paramter to parameter
2011-11-14 14:53:16 +00:00
uwe.tews@googlemail.com
9a9dd9a7ba
fixed topic reference in change_log.txt
2011-11-09 17:12:08 +00:00
uwe.tews@googlemail.com
555a7fceb9
- bugfix different behaviour of uniqid() on cygwin. See https://bugs.php.net/bug.php?id=34908
...
(forum topic 20199)
2011-11-09 15:30:06 +00:00
uwe.tews@googlemail.com
a061bc47d1
- bugfix multiline strings in config files could fail on longer strings (reopened Issue #55 )
2011-11-01 21:41:12 +00:00
uwe.tews@googlemail.com
d3e71dabb6
- bugfix {if} and {while} tags without condition did not throw a SmartyCompilerException (Issue #57 )
2011-11-01 20:27:53 +00:00
uwe.tews@googlemail.com
4f4cb7847d
fixed changelog
2011-10-22 17:07:06 +00:00
uwe.tews@googlemail.com
20a14579ce
- bugfix use catch Exception instead UnexpectedValueException in
...
clearCompiledTemplate to be PHP 5.2 compatible
- fixed PHPunit ClearCompiledTests to run also under Windows
2011-10-22 16:47:35 +00:00
rodneyrehm
1edb2220c7
- bugfix smarty_mb_from_unicode() would not decode unicode-points properly
2011-10-22 15:30:26 +00:00
rodneyrehm
7659c6c0ea
- add Smarty::$allow_ambiguous_resources to activate unique resource handling (Forum Topic 20128)
...
see http://www.smarty.net/forums/viewtopic.php?t=20128
2011-10-21 18:40:16 +00:00
rodneyrehm
6baca38bf1
- improvement sha1() for array keys longer than 150 characters
2011-10-21 12:10:41 +00:00
uwe.tews@googlemail.com
37719ce858
- bugfix apostrophe in plugins_dir path name failed (forum topic 20199)
2011-10-21 12:08:35 +00:00
rodneyrehm
6470e6a2c9
- improvement removed unnecessary sha1()
...
(and added previously forgotten templates for ClearCompileTests)
2011-10-20 20:28:21 +00:00
rodneyrehm
922017c7fa
- bugfix {html_select_date} and {html_select_time} did not properly handle empty time arguments (Forum Topic 20190)
...
see http://www.smarty.net/forums/viewtopic.php?t=20190
2011-10-20 13:31:25 +00:00
rodneyrehm
b71323ca24
- bugfix Smarty::clearCompiledTemplate() threw an Exception if $cache_id was not present in $compile_dir when $use_sub_dirs = true.
...
-rewrote ClearCompiledTests to cover all possible usage scenarios
2011-10-20 12:50:12 +00:00
rodneyrehm
38af2463df
- @silenced unlink() in Smarty_Internal_Write_File since debuggers go haywire without it.
2011-10-20 10:55:11 +00:00
uwe.tews@googlemail.com
85658fcdd4
- fixed PHP4 constructor message
2011-10-19 19:49:27 +00:00
monte.ohrt
5547f8a485
revert PHP4 constructor
2011-10-19 19:20:58 +00:00
monte.ohrt
dd30176b9e
fix text filenames, update changelog
2011-10-19 18:20:03 +00:00
monte.ohrt
724e1b969f
update change log
2011-10-19 14:37:08 +00:00
monte.ohrt
0dd7ddb2d1
add exception for using php4 style constructor
2011-10-19 14:32:52 +00:00
rodneyrehm
eea360e87d
- bugfix testInstall() did not propery check cache_dir and compile_dir
2011-10-16 09:53:14 +00:00
rodneyrehm
131553272a
- bugfix Smarty_Resource and Smarty_CacheResource runtime caching (Forum Post 75264)
...
www.smarty.net/forums/viewtopic.php?p=75264#75264
2011-10-15 10:46:03 +00:00
rodneyrehm
318328cd75
fixing previous commit
2011-10-14 17:54:25 +00:00
rodneyrehm
59a95253b4
- add Smarty_Internal_Template::clearCache() to accompany isCached() fetch() etc.
2011-10-14 17:15:06 +00:00
rodneyrehm
ef32ed830c
fixing previous commit
2011-10-14 16:22:00 +00:00
rodneyrehm
8a82d84861
- add locking to custom resources (Forum Post 75252)
...
this is a potentially dirty commit
2011-10-14 16:17:27 +00:00
rodneyrehm
ef3e29daa7
- bugfix unique_resource did not properly apply to compiled resources (Forum Topic 20128)
2011-10-14 09:31:09 +00:00
uwe.tews@googlemail.com
8471e25bd8
- bugfix multiline strings in config files could fail on longer strings (Issue #55 )
2011-10-13 16:25:50 +00:00
rodneyrehm
81c068dc3a
f***ing phpunit now doing what it's supposed to.
2011-10-13 15:36:35 +00:00
rodneyrehm
94dff13c89
removing todos
2011-10-13 13:41:59 +00:00
rodneyrehm
6979b4efb0
- add concept unique_resource to combat potentially ambiguous template_resource values when custom resource handlers are used (Forum Topic 2012)
...
http://www.smarty.net/forums/viewtopic.php?t=2012
thereby DRYed and optimized the resource handler identification method.
2011-10-13 13:10:06 +00:00
uwe.tews@googlemail.com
806c51fdcf
- bugfix disable of caching after isCached() call did not work (Forum Topic 20131)
2011-10-13 11:59:02 +00:00
rodneyrehm
3b006ae5a1
- add caching for config files in Smarty_Resource
...
(not really sure why this wasn't implemented yet?!) If we removed this (for some reason) we should've made a note of it in the code...
2011-10-13 09:50:55 +00:00
uwe.tews@googlemail.com
0fabe627ad
- add runtime checks for not matching {capture}/{/capture} calls (Forum Topic 20120)
2011-10-11 15:49:19 +00:00
rodneyrehm
352cb05cf5
- bugfix Smarty_CacheResource_mysql example was missing strtotime() calls
2011-10-10 19:31:34 +00:00
uwe.tews@googlemail.com
d3258767a6
- bugfix <?xml> tag did create wrong output when caching enabled and the tag was in included subtemplate
2011-10-10 11:38:27 +00:00
rodneyrehm
1cfdafccdd
- bugfix variable name typo in {html_options} and {html_checkboxes} (Issue #54 )
2011-10-10 08:53:43 +00:00
uwe.tews@googlemail.com
4c070d0bda
- bugfix parent pointer was not set when fetch() for other template was called on template object
2011-10-07 15:30:04 +00:00
rodneyrehm
b7ef6f0597
- improvement removed some unnecessary count()s
2011-10-07 14:05:26 +00:00
rodneyrehm
1f35133079
- improvement html_checkboxes and html_radios to accept null- and object values, and label_ids attribute
2011-10-07 13:39:45 +00:00
rodneyrehm
1bf1b05846
- bugfix html_options plugin did not handle object values properly (Issue #49 , Forum Topic 20049)
2011-10-07 12:11:33 +00:00
rodneyrehm
2fdb8c9bb5
- improvement testInstall() now showing resolved paths and checking the include_path if necessary
2011-10-07 11:07:00 +00:00
rodneyrehm
13f1415c22
- bugfix testInstall() would not show path to internal plugins_dir (Forum Post 74627)
2011-10-07 10:38:46 +00:00
rodneyrehm
a3a4bf8f80
- improvement removed html comments from {mailto} (Forum Topic 20092)
2011-10-07 08:55:12 +00:00
rodneyrehm
7169e594c4
- bugfix start_year and end_year of {html_select_date} did not use current year as offset base (Issue #53 )
2011-10-06 15:12:35 +00:00
uwe.tews@googlemail.com
904731fd1f
- bugfix switch lexer internals depending on mbstring.func_overload
2011-10-06 14:36:30 +00:00
rodneyrehm
3825ef336c
- bugfix html_options plugin did not handle null- and object values properly (Issue #49 , Forum Topic 20049)
2011-10-05 18:51:10 +00:00
uwe.tews@googlemail.com
1e48394ed3
- bugfix nofilter tag option did not disable default modifier
2011-10-05 18:17:40 +00:00
rodneyrehm
3e3f6ad43c
- add environment configuration issue with mbstring.func_overload Smarty cannot compensate for (Issue #45 )
2011-10-05 17:51:44 +00:00
rodneyrehm
aeec0783ec
- bugfix of problem introduced with r4342 by replacing strlen() with isset()
2011-10-05 17:11:01 +00:00
uwe.tews@googlemail.com
8bab7fe522
- bugfix has_nocache_code flag was not reset before compilation
2011-10-04 18:58:17 +00:00
uwe.tews@googlemail.com
eb9714cf0e
- bugfix output filter should not run on individually cached subtemplates
...
- add unloadFilter() method
2011-10-04 17:50:39 +00:00
uwe.tews@googlemail.com
4cb1e143cc
- bugfix of problem introduced with r4342 on math plugin
2011-10-04 16:38:12 +00:00
uwe.tews@googlemail.com
dbda42bc6c
- bugfix assign() in plugins called in subtemplates did change value also in parent template
2011-10-04 16:18:24 +00:00
monte.ohrt
9ca21fac77
update changelog
2011-10-03 19:30:08 +00:00
uwe.tews@googlemail.com
12e8593760
- improvement add internal $joined_template_dir property instead computing it on the fly several times
2011-10-03 19:02:44 +00:00
rodneyrehm
c24e213ed9
typo
2011-10-01 19:35:54 +00:00
rodneyrehm
9bd3520d97
- improvement Smarty_Internal_Utility::clearCompiledTemplate() removed redundant strlen()s
2011-10-01 19:11:28 +00:00
rodneyrehm
655cbc94bc
- improvement replaced some strlen($foo) > 3 calls by isset($foo[3])
2011-10-01 18:47:56 +00:00
rodneyrehm
aff7c6a0ab
- improvement replaced most in_array() calls by more efficient isset() on array_flip()ed haystacks
...
- added notes on possible performance optimization/problem with Smarty_Security
2011-10-01 18:10:48 +00:00
rodneyrehm
41958a5790
- improvement of Smarty_Internal_Config::loadConfigVars() dropped the in_array for index look up
2011-09-29 12:59:06 +00:00
uwe.tews@googlemail.com
bc2d519c38
- bugfix on template functions called nocache calling other template functions
2011-09-28 15:56:01 +00:00
uwe.tews@googlemail.com
d9ba05407a
- bugfix wrong resource could be used on compile check of custom resource
2011-09-27 21:48:33 +00:00
rodneyrehm
ae85a298d8
- bugfix smarty_make_timestamp() failed to process DateTime objects properly
2011-09-27 18:16:03 +00:00
uwe.tews@googlemail.com
0348e71109
- bugfix variable property did not work on objects variable in template
2011-09-27 17:52:21 +00:00
uwe.tews@googlemail.com
5c33be7fc0
- bugfix remove race condition when a custom resource did change timestamp during compilation
2011-09-27 17:15:31 +00:00
rodneyrehm
0cd9821dcc
- added chaining to Smarty_Internal_Data so $smarty->assign('a',1)->assign('b',2); is possible now
2011-09-27 12:36:50 +00:00
rodneyrehm
b6e6b67548
- bugfix possible warning "attempt to modify property of non-object" in {section} (issue #34 )
2011-09-27 10:09:25 +00:00
uwe.tews@googlemail.com
709e5e1e84
- bugfix repeated calls to same subtemplate did not make use of cached template object
2011-09-26 15:21:50 +00:00
uwe.tews@googlemail.com
a98d83bbf3
- improvment better error message for undefined templates at {include}
2011-09-24 18:20:13 +00:00
rodneyrehm
5c0d7ad8b4
- added compile_dir and cache_dir to list of muted directories
2011-09-24 15:45:30 +00:00
rodneyrehm
25e31b38f5
fixed error_handler
2011-09-24 14:12:36 +00:00
rodneyrehm
d0228e96ea
- removed internal muteExpectedErrors() calls in favor of having the implementor call this once from his application
...
- optimized muteExpectedErrors() to pass errors to the latest registered error handler, if appliccable
error muting is now a global thing. this was done because of the overhead set_error_handler imposes and the fact, that only a few people really "need" this.
The decision was made by uwe.tews and rodneyrehm. (just in case anyone asks…)
2011-09-24 12:56:52 +00:00
uwe.tews@googlemail.com
537285032c
- bugfix error muting was not implemented for cache locking
2011-09-23 22:27:44 +00:00
uwe.tews@googlemail.com
50a8f805dd
- remove unused properties
...
- optimization use real function instead anonymous function for preg_replace_callback
- bugfix a relative {include} in child template blocks failed
- bugfix direct setting of $template_dir, $config_dir, $plugins_dir in __construct() of an
extended Smarty class created problems
2011-09-23 20:21:16 +00:00
monte.ohrt
1d9f527c1e
update header
2011-09-23 14:22:30 +00:00
uwe.tews@googlemail.com
00a4769aa5
- bugfix debug.tpl did not display correctly when it was compiled with escape_html = true
2011-09-22 19:13:15 +00:00
uwe.tews@googlemail.com
6e22abb6dd
- bugfix {foreachelse} does fail if {section} was nested inside {foreach}
2011-09-22 14:51:34 +00:00
rodneyrehm
48295d9573
- reverted ./ and ../ handling in fetch() and display() - they're allowed again
2011-09-21 23:06:27 +00:00
uwe.tews@googlemail.com
95ab01f99f
remove unneeded error suppression
2011-09-21 22:54:08 +00:00
rodneyrehm
985b575e97
oops
2011-09-21 22:45:21 +00:00
rodneyrehm
f1511d813e
monte wanted some docs on the topic of error_muting
2011-09-21 22:44:53 +00:00
rodneyrehm
38a3554fa0
optimized autoloader
2011-09-21 22:10:52 +00:00
rodneyrehm
e499fb11f0
oops…
2011-09-21 22:05:54 +00:00
rodneyrehm
7a6b9dba91
- added $error_muting to suppress error messages even for badly implemented error_handlers
...
- reverted r4301
2011-09-21 22:02:54 +00:00
uwe.tews@googlemail.com
b77446463f
- bugfix use 3.0 version of smarty_internal_write_file.php because of problems with custom error handlers
2011-09-21 19:39:30 +00:00
uwe.tews@googlemail.com
cade307db0
- bugfix look for mixed case plugin file names as in 3.0 if not found try all lowercase
2011-09-21 19:06:16 +00:00
uwe.tews@googlemail.com
eb60692dbe
- bugfix {assign} with scope root and global did not work in all cases
2011-09-20 19:12:51 +00:00
rodneyrehm
a3dc61542d
apc.enable_cli must be activated for the APC test to execute in unit tests (which are run from CLI) duh!
2011-09-20 17:33:15 +00:00
uwe.tews@googlemail.com
bff28f38a4
- bugfix {include} did not work inside nested {block} tags
2011-09-20 17:27:45 +00:00
rodneyrehm
2df84e24a6
- bugfix relative paths in $template_dir broke relative path resolving in {include "../foo.tpl"}
2011-09-20 14:12:34 +00:00
uwe.tews@googlemail.com
29a7600b74
- bugfix removed debug echo output while compiling template inheritance
2011-09-19 23:58:52 +00:00
uwe.tews@googlemail.com
c8eb5d078a
- bugfix output filter shall not run on included subtemplates
2011-09-19 21:13:44 +00:00
rodneyrehm
c877da74de
- bugfix regression in Smarty_CacheReource_KeyValueStore introduced by r4261
...
- added APC test
- added read/write test to APC demo ('cause it ain't working on my machine!?)
2011-09-19 20:17:22 +00:00
uwe.tews@googlemail.com
8e6626fbca
- bugfix for Smarty2 style compiler plugins on unnamed attribute passing like {tag $foo $bar}
...
- bugfix debug.tpl did not display correctly when it was compiled with escape_html = true
2011-09-18 18:36:26 +00:00
rodneyrehm
c86131979e
comma -> dot
2011-09-18 09:48:51 +00:00
uwe.tews@googlemail.com
a44d9a6ac9
- bugfix template caching did not care about file.tpl in different template_dir
...
- bugfix {include $file} was broken when merge_compiled_incluges = true
- bugfix {include} was broken when merge_compiled_incluges = true and same indluded template
was used in different main templates in one compilation run
2011-09-18 02:31:58 +00:00
rodneyrehm
c9be9cd7f9
- bugfix lock_id for file resource would create invalid filepath
...
- bugfix resource caching did not care about file.tpl in different template_dir
- added svn:ignore where necessary
2011-09-17 16:29:10 +00:00
uwe.tews@googlemail.com
00d45f4d3f
- bugfix reverted resource caching as it could not detect template_dir changes
2011-09-16 22:31:34 +00:00
monte.ohrt
b6274e6ae9
fix non utf-8 chars
2011-09-16 16:26:28 +00:00
monte.ohrt
12a8953246
commit 3.1 files to trunk
2011-09-16 15:16:22 +00:00
uwe.tews@googlemail.com
c0e62f38ba
Update SMARTY_3.1_NOTES.txt
2011-09-16 14:46:38 +00:00
monte.ohrt
8842e79107
commit 3.1 into the trunk
2011-09-16 14:19:56 +00:00
uwe.tews@googlemail.com
5693de91f5
- bugfix subtemplate could use wrong varibale scope when it was recalled from different templates
2011-07-27 16:47:44 +00:00
uwe.tews@googlemail.com
c4c0cd254c
- bugfix experimental getTags() method did not work
2011-07-26 18:09:31 +00:00
uwe.tews@googlemail.com
c64813beb5
- bugfix individual cache_lifetime of {include} did not work correctly inside {block} tags
2011-07-15 00:42:43 +00:00
uwe.tews@googlemail.com
c859f6a9ae
- bugfix PHP did eat line break on nocache sections
2011-07-12 17:20:45 +00:00
uwe.tews@googlemail.com
a55e05506e
- bugfix clear_config Smarty2 BC wrapper function was missing
2011-06-19 20:34:28 +00:00
uwe.tews@googlemail.com
4d07e3b03e
- bugfix do not overwrite 'smarty' template variable when {include ... scope=parent} exits
2011-06-16 17:27:32 +00:00
rodneyrehm
bc96213c44
fix smarty security_policy issue in plugins {html_image} and {fetch}
2011-06-09 07:52:58 +00:00
uwe.tews@googlemail.com
0c552377cd
- bugfix registerFilter() or registerPlugin() on template objects did register to the main Smarty object if the register methods had been used on the main Smarty object before.
2011-06-07 14:31:22 +00:00
monte.ohrt
b59c9b06f9
update version
2011-06-03 19:39:21 +00:00
uwe.tews@googlemail.com
7c90b107b2
- bugfix <?xml..?> in templates did break "cache modified check"
2011-05-29 10:37:57 +00:00
uwe.tews@googlemail.com
7c0e3c89c1
- bugfix error handling at stream resources
2011-05-14 11:11:52 +00:00
uwe.tews@googlemail.com
86586e5af4
- bugfix fopen() error handling at stream resources
2011-05-14 10:18:10 +00:00
uwe.tews@googlemail.com
184557ed46
- bugfix condition starting with "-" did fail at {if} and {while} tags
2011-05-13 14:08:55 +00:00
uwe.tews@googlemail.com
6443a923cf
- workaround for PHP 5.2.13 bug in method_exists()
2011-04-22 02:19:14 +00:00
uwe.tews@googlemail.com
44dc14891d
- bugfix allow only fixed string as file attribute at {extends} tag
2011-04-21 23:11:24 +00:00
uwe.tews@googlemail.com
d999a7bc5c
- bugfix do not run filters and default modifier when displaying the debug template
...
- bugfix of embedded double quotes within multi line strings (""")
2011-04-01 08:41:57 +00:00
uwe.tews@googlemail.com
1757b274d6
- bugfix on error message in smarty_internal_compile_block.php
...
- bugfix mb handling in strip modifier
- bugfix for Smarty2 style registered compiler function on unnamed attribute passing like {tag $foo $bar}
2011-03-28 22:18:39 +00:00
uwe.tews@googlemail.com
6b0f3a6ede
- bugfix on default {function} parameters when {function} was used in nocache sections
...
- bugfix on compiler object destruction. compiler_object property was by mistake unset.
2011-03-16 23:57:04 +00:00
uwe.tews@googlemail.com
91c2c9ae1d
-bugfix a variable filter should run before modifers on an output tag (see change of 23/07/2010)
2011-03-09 13:26:34 +00:00
monte.ohrt
3e0c5e06b1
fixed config_load to only load defaults with no section defined
2011-03-08 16:14:38 +00:00
uwe.tews@googlemail.com
9d1b0abe5c
- bugfix internal rendered_content must be cleared after subtemplate was included
2011-03-03 19:37:00 +00:00
monte.ohrt
78d4e1b2e5
do some updates to the text
2011-03-03 17:03:57 +00:00
uwe.tews@googlemail.com
05335415d4
- bugfix "smarty" template variable was not recreated when cached templated had expired
2011-03-03 16:15:31 +00:00
uwe.tews@googlemail.com
fe26cf256e
- bugfix replace modifier did not work in 3.0.7 on systems without multibyte support
...
- bugfix {$smarty.template} could return in 3.0.7 parent template name instead of
child name when it needed to compile
2011-03-01 19:47:44 +00:00
uwe.tews@googlemail.com
e583777976
- bugfix for Smarty2 style compiler plugins on unnamed attribute passing like {tag $foo $bar}
2011-02-25 16:09:28 +00:00
uwe.tews@googlemail.com
34d5029469
- bugfix $smarty->clearCache('some.tpl') did by mistake cache the template object
2011-02-24 15:28:03 +00:00
uwe.tews@googlemail.com
dea3e1f83e
- bugfix force default debug.tpl to be loaded by the file resource when default_resource_type was modified
2011-02-19 00:20:45 +00:00
uwe.tews@googlemail.com
5b8a7e2ad9
- bugfix removed possible race condition when isCached() was called for an individually cached subtemplate
2011-02-18 17:33:38 +00:00
uwe.tews@googlemail.com
0e863c651d
-improvement not to delete files starting with '.' from cache and template_c folders on clearCompiledTemplate() and clearCache()
2011-02-17 15:43:37 +00:00
uwe.tews@googlemail.com
5a6c3e6928
-improvement allow leading spaces on } tag closing if auto_literal is enabled
2011-02-16 16:45:27 +00:00
uwe.tews@googlemail.com
e4e5418b46
-fixed typo in exception message of Smarty_Internal_Template
2011-02-16 14:20:23 +00:00
uwe.tews@googlemail.com
295c2ebd8e
2011-02-13 22:11:27 +00:00
uwe.tews@googlemail.com
d38cb92059
- bufix replace $smarty->triggerError() by exception
...
- removed obsolete {popup_init..} plugin from demo templates
2011-02-13 22:04:58 +00:00
monte.ohrt
be268fe3b0
remove popup_init from demo template
2011-02-13 13:37:27 +00:00
monte.ohrt
43f3581591
update change log with version tag
2011-02-11 22:52:27 +00:00
monte.ohrt
f9ce2d8c7e
fix typos, rewording
2011-02-11 22:21:17 +00:00
uwe.tews@googlemail.com
0154f17de2
- bugfix removed security hole when using {$smarty.template}
2011-02-09 17:50:05 +00:00
uwe.tews@googlemail.com
5c8541eae3
- removed assert() from config and template parser
2011-02-01 12:51:01 +00:00
uwe.tews@googlemail.com
0860e69018
- bugfix the lexer/parser did fail on special characters like VT
2011-01-31 14:15:12 +00:00
monte.ohrt
af19a07bf3
flip test for ctype_digit, speed up
2011-01-19 15:13:27 +00:00
monte.ohrt
2d75fb0098
avoid preg for string match
2011-01-17 21:49:19 +00:00
uwe.tews@googlemail.com
d494d0db22
-bugfix of Iterator object handling in internal _count() method
2011-01-16 16:22:58 +00:00
uwe.tews@googlemail.com
7dfb27d322
-bugfix of ArrayAccess object handling in internal _count() method
2011-01-16 15:28:43 +00:00
uwe.tews@googlemail.com
cfd81bafba
fix memory leak
2011-01-14 21:51:08 +00:00
uwe.tews@googlemail.com
d8f8e417f4
- remove possible warning
2011-01-14 20:40:42 +00:00
uwe.tews@googlemail.com
9ef3c770ef
-bugfix removed memory leak while processing compileAllTemplates
2011-01-14 18:39:16 +00:00
uwe.tews@googlemail.com
7d48680bd5
- bugfix in {if} and {while} tag compiler when using assignments as condition and nocache mode
2011-01-12 21:33:26 +00:00
uwe.tews@googlemail.com
65e823610d
- bugfix when using {$smarty.block.child} and name of {block} was in double quoted string
...
- bugfix updateParentVariables() was called twice when leaving {include} processing
2011-01-10 17:10:35 +00:00
monte.ohrt
eba1d212f2
remove overlib plugins - no longer supported
2011-01-04 16:15:04 +00:00
monte.ohrt
d0b232e264
fix mb_str_replace to work with utf8
2011-01-03 23:19:22 +00:00
uwe.tews@googlemail.com
9630a99a82
- bugfix dynamic configuration of $debugging_crtl did not work
...
- bugfix default value of $config_read_hidden changed to false
- bugfix format of attribute array on compiler plugins
- bugfix getTemplateVars() could return value from wrong scope
2010-12-31 13:47:12 +00:00
uwe.tews@googlemail.com
015f817259
- bugfix multiple {append} tags failed to compile.
2010-12-28 22:40:13 +00:00
uwe.tews@googlemail.com
9f3758ace1
do not clone Smarty object on internal createTemplate() calls
2010-12-22 16:35:39 +00:00
monte.ohrt
c0b6f29077
update html_options to support class and id attrs
2010-12-21 15:59:25 +00:00
uwe.tews@googlemail.com
b9477b0deb
- bugfix added missing support of $cache_attrs for registered plugins
2010-12-17 21:05:29 +00:00
uwe.tews@googlemail.com
6d897f0d59
- bugfix assigment as condition in {while} did drop an E_NOTICE
2010-12-15 09:08:35 +00:00
uwe.tews@googlemail.com
2918615377
- bugfix when passing an array as default parameter at {function} tag
2010-12-14 03:55:31 +00:00
uwe.tews@googlemail.com
f0c95ab79c
- bugfix {$smarty.template} in child template did not return right content
...
- bugfix Smarty3 did not search the PHP include_path for template files
2010-12-13 22:05:27 +00:00
monte.ohrt
73bd60cad5
update changelog
2010-12-13 15:56:49 +00:00
uwe.tews@googlemail.com
5999777341
- bugfix fixed typo regarding yesterdays change to allow streamWrapper
2010-12-12 12:45:52 +00:00
uwe.tews@googlemail.com
b8b68d7edf
- bugfix changed code when writing temporary compiled files to allow stream_wrapper
2010-12-11 13:55:06 +00:00
uwe.tews@googlemail.com
cf50ede71a
- bugfix nested block tags in template inheritance child templates did not work correctly
...
- bugfix {$smarty.current_dir} in child template did not point to dir of child template
2010-12-11 13:27:14 +00:00
uwe.tews@googlemail.com
ea37403f01
- bugfix getTemplateVars() should return 'null' instead dropping E_NOTICE on an unassigned variable
2010-12-06 19:00:50 +00:00
uwe.tews@googlemail.com
6ddcf3819a
- bugfix empty($foo) in {if} did drop a notice when $foo was not assigned
2010-12-05 22:15:23 +00:00
uwe.tews@googlemail.com
5522850591
- bugfix missing declaration of $smarty in Smarty class
2010-12-05 17:21:02 +00:00
uwe.tews@googlemail.com
5139a6fcd1
- other update regarding {debug}
2010-12-01 23:34:06 +00:00
uwe.tews@googlemail.com
176c3d625c
- improvement of {debug} tag output
2010-12-01 21:19:20 +00:00
uwe.tews@googlemail.com
e80dd75958
-change run output filter before cache file is written (as in Smarty2)
2010-11-27 15:05:38 +00:00
uwe.tews@googlemail.com
2e1c83f44d
-bugfix on parser at !$foo|modifier
...
-change parser logic when assignments used as condition in {if] and {while} to allow assign to array element
2010-11-24 19:38:45 +00:00
uwe.tews@googlemail.com
c08664e75e
-bugfix allow integer as attribute name in plugin calls
...
-change trimm whitespace from error message, removed long list of expected tokens
2010-11-23 23:36:16 +00:00
uwe.tews@googlemail.com
c0130d5d34
- added error message for illegal variable file attributes at {extends...} tags
2010-11-22 22:03:47 +00:00
uwe.tews@googlemail.com
1153ea5a5a
- bugfix on template inheritance when an {extends} tag was inserted by a prefilter
2010-11-22 19:43:11 +00:00
uwe.tews@googlemail.com
f14de1689c
update changelog
2010-11-21 03:12:26 +00:00
monte.ohrt
abf779f91b
update README for 3.0.5wq
2010-11-21 02:58:39 +00:00
uwe.tews@googlemail.com
8e4cd21b3d
revert change of 19/11/2010 - bugfix on template inheritance. prefilter did not run over child blocks
...
It was no error
2010-11-20 15:24:32 +00:00
uwe.tews@googlemail.com
1c9f015135
- bugfix on block plugins with modifiers
...
- bugfix on template inheritance. prefilter did not run over child blocks
2010-11-20 00:00:24 +00:00
uwe.tews@googlemail.com
eddb301947
- change on handling of unassigned template variable -- default will drop E_NOTICE
...
- bugfix on Smarty2 wrapper load_filter() did not work
2010-11-18 18:58:53 +00:00
uwe.tews@googlemail.com
6b9921baae
2010-11-18 00:18:57 +00:00
uwe.tews@googlemail.com
dd332db455
-bugfix in function.fetch.php, reference to undefined $smarty
2010-11-17 23:15:12 +00:00
uwe.tews@googlemail.com
f49ac309b9
- bugfix on {block} if name did contain '-'
2010-11-17 19:07:59 +00:00
uwe.tews@googlemail.com
6d4b6accfd
- bugfix on {call} with variable function name
2010-11-17 17:21:27 +00:00
uwe.tews@googlemail.com
a2d99d41b1
- bugfix on default parameter for {function}
2010-11-16 23:16:34 +00:00
uwe.tews@googlemail.com
db8867cd88
- bugfix whitespace in front of "<?php" in smarty_internal_compile_private_block_plugin.php
...
- bugfix {$smarty.now} did compile incorrectly
- bugfix on reset(),end(),next(),prev(),current() within tempaltes
2010-11-16 21:06:46 +00:00
uwe.tews@googlemail.com
ef85c9f2ad
- bugfix captured content could not be accessed globally
...
- bugfix Smarty2 wrapper functions could not be call from within plugins
2010-11-15 22:54:59 +00:00
uwe.tews@googlemail.com
21ed644f82
- bugfix when using {$smarty.session} as object
...
- bugfix scoping problem on $smarty object passed to filters
2010-11-15 19:17:18 +00:00
uwe.tews@googlemail.com
d2cafef753
- small performace patch in Smarty class
2010-11-14 18:46:18 +00:00
uwe.tews@googlemail.com
7135787127
- bugfix isset() did not allow multiple parameter
...
- improvment of some error messages
- bugfix html_image did use removed property $request_use_auto_globals
2010-11-14 15:08:44 +00:00
uwe.tews@googlemail.com
6ff5c28343
- bugfix overloading problem when $smarty->fetch()/display() have been used in plugins
2010-11-13 18:32:50 +00:00
uwe.tews@googlemail.com
5d278ce5ad
- code cleanup
2010-11-13 17:48:30 +00:00
uwe.tews@googlemail.com
7dc5c0a09d
- bugix overloading problem when $smarty->fetch()/display() have been used in plugins (introduced with 3.0.2)
2010-11-13 15:26:03 +00:00
uwe.tews@googlemail.com
fb29ed63ed
- improvement remove last linebreak from {function} definition
2010-11-13 11:16:01 +00:00
uwe.tews@googlemail.com
1f0c08ce3f
- fixed internal_config (removed unwanted code line)
2010-11-13 05:06:58 +00:00
uwe.tews@googlemail.com
fe63ad36b8
- reverted location of loadPlugin() to Smarty class
...
- fixed comments in plugins
2010-11-13 04:10:52 +00:00
uwe.tews@googlemail.com
3c04e4ff37
- bugfix on {debug}
2010-11-13 01:53:38 +00:00
uwe.tews@googlemail.com
626b95dfb4
2010-11-12 23:43:02 +00:00
uwe.tews@googlemail.com
5e21770fe5
- reactivated $error_reporting property handling
...
- fixed typo in compile_continue
- fixed security in {fetch} plugin
- changed back plugin parameters to two. second is template object
with transparent access to Smarty object
- fixed {config_load} scoping form compile time to run time
2010-11-12 23:42:32 +00:00
monte.ohrt
86afd1b42a
update version in README
2010-11-12 15:02:15 +00:00
uwe.tews@googlemail.com
6401833933
- reactivated $error_reporting property handling
2010-11-12 14:53:49 +00:00
monte.ohrt
bafcf67f81
update license
2010-11-12 01:44:30 +00:00
monte.ohrt
5abe3d5c62
finish commit, resolve conflict
2010-11-12 01:38:08 +00:00
monte.ohrt
0d1cebad79
update README
...
≈
2010-11-11 21:54:26 +00:00
monte.ohrt
6cd1b88fbe
update README
2010-11-11 21:49:04 +00:00
uwe.tews@googlemail.com
f044178bad
- major update including some API changes
2010-11-11 21:34:36 +00:00
uwe.tews@googlemail.com
93686c695d
2010-11-10 17:02:48 +00:00
uwe.tews@googlemail.com
8497415888
- observe compile_id also for config files
2010-11-10 16:46:57 +00:00
uwe.tews@googlemail.com
87ec00f518
-bugfix on complex expressions as start value for {for} tag
2010-11-09 20:35:47 +00:00
uwe.tews@googlemail.com
7af4fc7521
- bugfix do not allow access of dynamic and private object members of assigned objects when security is enabled.
2010-11-04 15:53:28 +00:00
uwe.tews@googlemail.com
c7e7f5b3b2
- bugfix related to E_NOTICE change. {if empty($foo)} did fail when $foo contained a string
2010-11-01 17:23:28 +00:00
uwe.tews@googlemail.com
0acba360d3
- bugfix on compiling modifiers within $smarty special vars like {$smarty.post.{$foo|lower}}
2010-10-28 20:11:01 +00:00
uwe.tews@googlemail.com
ecd1793bdf
- bugfix default parameter values did not work for template functions included with {include}
2010-10-27 16:42:01 +00:00
uwe.tews@googlemail.com
5176f39583
- bugfix for E_NOTICE change, array elements did not work as modifier parameter
2010-10-25 18:53:43 +00:00
uwe.tews@googlemail.com
ce7a278f44
- bugfix for the E_NOTICE change
2010-10-20 18:28:04 +00:00
uwe.tews@googlemail.com
be02af7246
- change Smarty does no longer mask out E_NOTICE by default during template processing
2010-10-19 16:06:52 +00:00
uwe.tews@googlemail.com
147c5d0631
- bugfix on output buffer handling in isCached() method
2010-10-13 23:22:57 +00:00
uwe.tews@googlemail.com
cf42bcd242
- bugfix on template inheritance using nested eval or string resource in {extends} tags
2010-10-13 20:26:12 +00:00
uwe.tews@googlemail.com
7ec3cb453c
- bugfix removed ambiguity between ternary and stream variable in template syntax
...
- bugfix use caching properties of template instead of smarty object when compiling child {block}
- bugfix {*block}...{/block*} did throw an exception in template inheritance
2010-10-13 15:44:03 +00:00
uwe.tews@googlemail.com
415d2f43e2
- added {break} and {continue} tags for flow control of {foreach},{section},{for} and {while} loops
...
- change of 'string' resource. It's no longer evaluated and compiled files are now stored
- new 'eval' resource which evaluates a template without saving the compiled file
- change in isCached() method to allow multiple calls for the same template
2010-10-01 13:19:53 +00:00
uwe.tews@googlemail.com
dde2219004
- bugfix on some compiling modifiers
2010-09-25 13:31:57 +00:00
uwe.tews@googlemail.com
802d40f3d3
- bugfix merge_compiled_includes flag was not restored correctly in {block} tag
2010-09-24 12:13:19 +00:00
uwe.tews@googlemail.com
e8ab747a60
- bugfix on default modifier
2010-09-22 13:06:47 +00:00
uwe.tews@googlemail.com
b38e46db46
- bugfix untility compileAllConfig() did not create sha1 code for compiled template file names if template_dir was defined with no trailing DS
...
- bugfix on templateExists() for extends resource
2010-09-18 14:57:02 +00:00
uwe.tews@googlemail.com
18bcfa2ba7
- bugfix {$smarty.template} and {$smarty.current_dir} did not compile correctly within {block} tags
...
- bugfix corrected error message on missing template files in extends resource
- bugfix untility compileAllTemplates() did not create sha1 code for compiled template file names if template_dir was defined with no trailing DS
2010-09-17 18:10:10 +00:00
uwe.tews@googlemail.com
66752cd790
- bugfix when a doublequoted modifier parameter did contain Smarty tags and ':'
2010-09-16 16:29:44 +00:00
uwe.tews@googlemail.com
44c6732970
15/09/2010
...
- bugfix resolving conflict between '<%'/'%>' as custom Smarty delimiter and ASP tags
- use ucfirst for resource name on internal resource class names
2010-09-15 15:17:28 +00:00
uwe.tews@googlemail.com
4556f7d370
- bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results)
2010-09-12 17:46:04 +00:00
uwe.tews@googlemail.com
255c271246
- bugfix for change of 08/09/2010 (final {block} tags in subtemplates did not produce correct results)
2010-09-10 11:15:15 +00:00
Uwe.Tews
550a416209
- allow multiple template inheritance branches starting in subtemplates
2010-09-08 17:40:00 +00:00
Uwe.Tews
a2f50cebd4
- bugfix {counter} and {cycle} plugin assigned result to smarty variable not in local(template) scope
...
- bugfix templates containing just {strip} {/strip} tags did produce an error
2010-09-07 16:24:34 +00:00
Uwe.Tews
96e3d9937a
- fixed E_STRICT errors for uninitialized variables
2010-08-23 14:40:10 +00:00
Uwe.Tews
ee15e53542
- added attribute cache_id to {include} tag
2010-08-22 12:15:51 +00:00
monte.ohrt
21d507a5cb
fix formatting
2010-08-17 15:39:51 +00:00
Uwe.Tews
ad921936b0
- remove exception_handler property from Smarty class
...
- added Smarty's own exceptions SmartyException and SmartyCompilerException
2010-08-13 10:39:51 +00:00
Uwe.Tews
cbc4205669
- bugfix on modifier with doublequoted strings as parameter containing embedded tags
2010-08-09 14:28:28 +00:00
Uwe.Tews
85450515d9
2010-08-06 15:34:18 +00:00
Uwe.Tews
a8cb6c737f
2010-08-06 14:38:33 +00:00
Uwe.Tews
cf231447d2
- bugfix when cascading some modifier like |strip|strip_tags modifier
2010-08-06 13:43:52 +00:00
Uwe.Tews
09dfffd2a0
- bugfix in nocache sections {include} must not cache the subtemplate
2010-08-05 21:13:29 +00:00
Uwe.Tews
08874b0965
- added plugin type modifiercompiler to produce compiled modifier code
...
- changed standard modifier plugins to the compiling versions whenever possible
2010-08-05 17:50:16 +00:00
Uwe.Tews
254c9e6c53
- bugfix strip did not work correctly in conjunction with comment lines
2010-08-02 16:29:23 +00:00
Uwe.Tews
e8fbee624d
- bugfix on nocache attribute at {assign} and {append}
2010-07-31 13:29:59 +00:00
Uwe.Tews
b52cbe9adb
- bugfix passing scope attributes in doublequoted strings did not work at {include} {assign} and {append}
2010-07-30 13:09:52 +00:00
Uwe.Tews
7c7d65eb32
2010-07-25 11:42:46 +00:00
Uwe.Tews
b7b2e7c4be
- another bugfix of change from 23/07/2010 when compiling modifer
2010-07-25 10:58:54 +00:00
Uwe.Tews
a09ed74a10
2010-07-24 23:44:21 +00:00
Uwe.Tews
8598eca6bc
2010-07-24 23:34:19 +00:00
Uwe.Tews
8e8feb3945
- bugfix of change from 23/07/2010 when compiling modifer
2010-07-24 21:58:16 +00:00
Uwe.Tews
6ae00435af
- changed execution order. A variable filter does now run before modifiers on output of variables
...
- bugfix use always { and } as delimiter for debug.tpl
2010-07-23 12:53:04 +00:00
Uwe.Tews
f319a15cfc
- bugfix in templateExists() method
2010-07-22 19:11:38 +00:00
Uwe.Tews
ff7fce9bca
- fixed handling of { strip } tag with whitespaces
2010-07-20 16:19:54 +00:00
Uwe.Tews
c4a824bf2c
- bufix {$smarty.template} does include now the relative path, not just filename
2010-07-15 14:08:56 +00:00
Uwe.Tews
f6b98d0d7f
2010-07-14 23:15:20 +00:00
Uwe.Tews
c1e1c03892
- make the date_format modifier work also on objects of the DateTime class
...
- implementation of parsetrees in the parser to close security holes and remove unwanted empty line in HTML output
2010-07-14 22:47:37 +00:00
monte.ohrt
50637fccdd
add DateTime support, clean up some logic
2010-07-13 22:57:47 +00:00
Uwe.Tews
db38a0aaec
- bugfix on assigning multidimensional arrays within templates
...
- corrected bugfix for truncate modifier
2010-07-08 18:30:03 +00:00
Uwe.Tews
396d7aa8a5
- bugfix support of script files relative to trusted_dir
2010-07-07 22:08:10 +00:00
Uwe.Tews
c8f22fe247
- bugfix the truncate modifier needs to check if the string is utf-8 encoded or not
2010-07-07 16:34:06 +00:00
Uwe.Tews
c83ef6792c
- create exception on recursive {extends} calls
...
- fixed reported line number at "unexpected closing tag " exception
- bugfix on escape:'mail' modifier
- drop exception if 'item' variable is equal 'from' variable in {foreach} tag
2010-07-06 20:00:41 +00:00
Uwe.Tews
cbe2f3356f
- removed call_user_func_array calls for optimization of compiled code when using registered modifiers and plugins
...
- updated comments
2010-07-01 19:57:56 +00:00
Uwe.Tews
6456403706
- bugfix escaping " when block tags are used within doublequoted strings
2010-06-25 18:41:30 +00:00
Uwe.Tews
ccc0e1b6c8
- added $smarty->register->templateClass() and $smarty->unregister->templateClass() methods for supporting static classes with namespace
2010-06-24 20:30:19 +00:00
Uwe.Tews
f99e09f588
- replace internal get_time() calls with standard PHP5 microtime(true) calls in Smarty_Internal_Utility
2010-06-24 14:43:04 +00:00
Uwe.Tews
95869f258e
- allow spaces between typecast and value in template syntax
...
- bugfix get correct count of traversables in {foreach} tag
2010-06-22 18:09:12 +00:00
Uwe.Tews
f7fd63e890
- improved speed of cache->clear() when a compile_id was specified and use_sub_dirs is true
2010-06-21 20:10:22 +00:00
Uwe.Tews
7626cbf093
- removed use of PHP shortags SMARTY_PHP_PASSTHRU mode
2010-06-21 18:01:36 +00:00
Uwe.Tews
5a974e69cf
2010-06-20 21:16:18 +00:00
Uwe.Tews
1380199f43
- closed security hole when php.ini asp_tags = on
2010-06-20 20:37:16 +00:00
Uwe.Tews
b534be00da
- replace internal get_time() calls with standard PHP5 microtime(true) calls
2010-06-20 14:37:47 +00:00
Uwe.Tews
7cd84ed640
- added __toString method to the Smarty_Variable class
2010-06-18 15:10:35 +00:00
Uwe.Tews
6ba7d10ccd
- make handling of Smarty comments followed by newline BC to Smarty2
2010-06-14 18:40:31 +00:00
Uwe.Tews
7075a1186d
- bugfix Smarty3 did not handle hexadecimals like 0x0F as numerical value
...
- bugifx Smarty3 did not accept numerical constants like .1 or 2. (without a leading or trailing digit)
2010-06-13 12:52:36 +00:00
Uwe.Tews
538708d344
11/06/2010
...
- bugfix the lexer did fail on larger {literal} ... {/literal} sections
2010-06-11 13:01:36 +00:00
monte.ohrt
968deec9a4
remove newline on include tag
2010-06-10 18:58:26 +00:00
monte.ohrt
c963a8342e
fix assign_by_ref and append_by_ref BC compatability
2010-06-08 20:45:18 +00:00
Uwe.Tews
cf2f6a33e1
- bugfix on calling template functions like Smarty tags
2010-06-03 14:33:51 +00:00
Uwe.Tews
62490ae8c0
- removed /* vim: set expandtab: */ comments
...
- bugfix of auto literal problem introduce with fix of 31/05/2010
2010-06-01 19:11:48 +00:00
Uwe.Tews
c82455c145
- bugfix on template functions used with template inheritance
2010-06-01 17:10:39 +00:00
monte.ohrt
72d41f3b59
update @ syntax
2010-06-01 14:42:26 +00:00
Uwe.Tews
6ac2489ea5
- bugfix the parser did not allow some smarty variables with special name like $for, $if, $else and others.
2010-05-31 17:58:23 +00:00
Uwe.Tews
2ad1d7e102
- make scope of {counter} and {cycle} tags again global as in Smarty2
2010-05-27 19:56:39 +00:00
Uwe.Tews
b889d66dd9
- bugfix on object chaining using variable properties
2010-05-27 15:59:40 +00:00
Uwe.Tews
8bf398e22c
- bugfix removed decrepated register_resource call in smarty_internal_template.php
2010-05-26 20:35:15 +00:00
Uwe.Tews
063b8bf150
- rewrite of template function handling to improve speed
...
- bugfix on file dependency when merge_compiled_includes = true
2010-05-25 19:33:55 +00:00
Uwe.Tews
eb12b18929
- bugfix when passing parameter with numeric name like {foo 1='bar' 2='blar'}
2010-05-16 20:12:14 +00:00
Uwe.Tews
a15c0f85d1
14/05/2010
...
- bugfix compile new config files if compile_check and force_compile = false
- added variable static classes names to template syntax
2010-05-14 13:45:04 +00:00
Uwe.Tews
3197470ca5
- reverted the change 0f 30/04/2010. With the exception of forward references template functions can be again called by a standard tag.
2010-05-11 17:01:08 +00:00
Uwe.Tews
6e97a8a393
- bugfix make sure that the cache resource is loaded in all conditions when template methods getCached... are called externally
2010-05-11 16:24:24 +00:00
Uwe.Tews
2d1ce2f940
- bugfix on {foreach} and {for} optimizations of 27/04/2010
2010-05-10 20:08:24 +00:00
Uwe.Tews
cf11940bf7
- update of template and config file parser because of minor parser generator bugs
2010-05-09 16:48:03 +00:00
Uwe.Tews
25ea3dd1de
- bugfix on {insert}
2010-05-07 18:28:17 +00:00
Uwe.Tews
d1986c6cff
- bugfix on {insert}
2010-05-07 13:08:46 +00:00
Uwe.Tews
98753671e3
- bugfix when merging compiled templates and objects are passed as parameter of the {include} tag
2010-05-06 17:59:31 +00:00
Uwe.Tews
bf591a307b
- bugfix on getTemplateVars method
2010-05-06 00:32:10 +00:00
Uwe.Tews
2e8b7c864d
- implementation of $smarty->default_modifiers as in Smarty2
2010-05-06 00:11:30 +00:00
Uwe.Tews
df1ddc31fc
- bugfix on {insert} to cache parameter
2010-05-05 19:48:42 +00:00
Uwe.Tews
e71c82ff1d
- bugfix on handling of variable method names at object chaning
2010-05-01 16:10:20 +00:00
Uwe.Tews
ecf66837b5
- fix to make calling of template functions unambiguously by madatory usage of the {call} tag
2010-04-30 21:06:07 +00:00
Uwe.Tews
0920b383c6
- bugfix on template inheritance for tag names starting with "block"
...
- bugfix on {function} tag with name attribute in doublequoted strings
2010-04-30 18:11:34 +00:00
Uwe.Tews
ace9d4fe5e
- work around of a substr_compare bug in older PHP5 versions
2010-04-30 14:04:03 +00:00
Uwe.Tews
ea84147f45
- work around of a substr_compare bug in older PHP5 versions
2010-04-30 14:00:26 +00:00
Uwe.Tews
6bb0cb7c0c
- bugfix when comparing timestamps in sysplugins/smarty_internal_config.php
2010-04-30 13:12:12 +00:00
Uwe.Tews
d7a629df0c
- change default of $debugging_ctrl to 'NONE'
...
- optimization of compiled code of {foreach} and {for} loops
- change of compiler for config variables
2010-04-28 20:30:27 +00:00
Uwe.Tews
4e27b70ba5
- bugfix in $smarty->cache->clear() method. (do not cache template object)
2010-04-27 17:47:24 +00:00
Uwe.Tews
d44ffe9132
- security fix in {math} plugin
2010-04-17 10:24:44 +00:00
monte.ohrt
09c208eda6
revert lables on optgroup tags
2010-04-16 13:49:46 +00:00
monte.ohrt
4e8602585e
remove label from option tag (unnecessary):wq
2010-04-12 19:04:02 +00:00
Uwe.Tews
c8be3ed029
- removed parser restrictions in using true,false and null as ID
2010-04-12 18:22:53 +00:00
Uwe.Tews
5d644eb203
- bugfix in smarty_internal_templatecompilerbase (overloaded property)
2010-04-12 15:06:24 +00:00
Uwe.Tews
1eb8a44b0f
- bugfix typo in smarty_internal_templatecompilerbase and smarty_internal_template
2010-04-07 15:19:02 +00:00
Uwe.Tews
b14725e21a
- bugfix typo in smarty_internal_templatecompilerbase
2010-04-07 15:10:34 +00:00
Uwe.Tews
b52e9f1ac8
- compile locking by touching old compiled files to avoid concurrent compilations
2010-03-31 16:23:01 +00:00
Uwe.Tews
24d5ad78f3
- bugfix allow array definitions as modifier parameter
...
- bugfix observe compile_check property when loading config files
- added the template object as third filter parameter
2010-03-29 15:41:01 +00:00
Uwe.Tews
76f1bd5428
- new method utility->compileAllConfig() to compile all config files
2010-03-25 21:18:58 +00:00
Uwe.Tews
c24dce9ed4
- change of utility->compileAllTemplates() log messages
...
- bugfix on nocache code in {function} tags
2010-03-25 20:43:56 +00:00
Uwe.Tews
8372ef8874
- bugfix on register->modifier() error messages
2010-03-24 11:23:18 +00:00
Uwe.Tews
63d671b935
- bugfix on caching mode SMARTY_CACHING_LIFETIME_SAVED and cache_lifetime = 0
2010-03-23 17:08:46 +00:00
Uwe.Tews
2e27c294b3
- bugfix on template inheritance when calling multiple child/parent relations
2010-03-23 16:51:48 +00:00
Uwe.Tews
7f64fdc593
- bugfix make directory separator operating system independend in compileAllTemplates()
2010-03-22 16:12:18 +00:00
monte.ohrt
56d054b743
fix testInstall() error messages
2010-03-22 14:48:46 +00:00
Uwe.Tews
97041ec7be
- removed unused code in compileAllTemplates()
2010-03-21 14:18:17 +00:00
Uwe.Tews
6d2fb922e9
- bugfix for multiple {/block} tags on same line
2010-03-19 15:45:32 +00:00
Uwe.Tews
d89e53c2f6
- bugfix make $smarty->cache->clear() function independent from caching status
2010-03-17 17:37:32 +00:00
Uwe.Tews
eb4436e7be
- bugfix on assign attribute at registered template objects
...
- make handling of modifiers on expression BC to Smarty2
2010-03-16 18:26:46 +00:00
Uwe.Tews
c573ee9bf8
- bugfix on block plugin calls
2010-03-15 21:40:05 +00:00
Uwe.Tews
13089f2d64
- changed parsing of <?php and ?> back to Smarty2 behaviour
2010-03-11 22:26:46 +00:00
monte.ohrt
cba54ad3d8
remove old API call
2010-03-10 16:21:16 +00:00
Uwe.Tews
5e2bf86e66
- bugfix on uninitialized properties in smarty_internal_template
...
- bugfix on $smarty->disableSecurity()
2010-03-09 21:11:21 +00:00
monte.ohrt
689ee2c73c
fix overload error
2010-03-09 15:14:11 +00:00
Uwe.Tews
4b6590728e
- README update regarding plugins
2010-03-08 18:06:54 +00:00
monte.ohrt
54a8dcd343
add __get() to templateCreate class
2010-03-08 16:20:19 +00:00
monte.ohrt
374d801d51
remove comment
2010-03-08 15:16:35 +00:00
monte.ohrt
05a9c3beab
add setters/getters to created templates
2010-03-08 15:15:41 +00:00
Uwe.Tews
d9e4646b60
- bugfix on accessing chained objects of static classes
2010-03-04 20:33:53 +00:00
Uwe.Tews
a2a7942cea
- bugfix allow uppercase chars in registered resource names
2010-03-04 15:49:48 +00:00
Uwe.Tews
5d9f7ab65b
- bugfix on nocache code in {block} tags if child template was included by {include}
2010-03-01 16:46:30 +00:00
monte.ohrt
7300133dc6
move replacement func
2010-03-01 14:56:24 +00:00
monte.ohrt
0d3137b511
fix mb check
2010-03-01 14:52:01 +00:00
Uwe.Tews
1819689775
- bugfix on double quote strings
2010-02-28 13:51:57 +00:00
Uwe.Tews
428889e762
- code optimizations
2010-02-28 12:50:33 +00:00
Uwe.Tews
ed2458e9ae
- code optimization
2010-02-27 23:28:14 +00:00
Uwe.Tews
3898f593f4
- allow block tags inside double quoted string
2010-02-27 20:10:32 +00:00
Uwe.Tews
a4d34aebce
- support of access to a class constant from an object (since PHP 5.3)
2010-02-26 13:28:54 +00:00
Uwe.Tews
3059df16aa
- cache modified check implemented
2010-02-26 12:58:36 +00:00
Uwe.Tews
0426dd0459
- bugfix on expressions in doublequoted string enclosed in backticks
...
- added security property $static_classes for static class security
2010-02-24 18:01:03 +00:00
monte.ohrt
7c9aed9299
remove debug code
2010-02-20 23:22:55 +00:00
monte.ohrt
591df13a26
fix __get() return value, and set properties before returning
2010-02-20 21:48:19 +00:00
Uwe.Tews
f393874262
- bugfix on parsing Smarty tags inside <?xml ... ?>
...
- bugfix on truncate modifier
2010-02-18 16:28:11 +00:00
monte.ohrt
c5b0288087
remove unnecessary param for preg
2010-02-18 14:45:27 +00:00
Uwe.Tews
950c3a7307
2010-02-17 21:30:36 +00:00
Uwe.Tews
44feb88c19
- bugfix on <?xml ... ?> tags for all php_handling modes
...
- bugfix on parameter of variablefilter.htmlspecialchars.php plugin
2010-02-16 20:20:49 +00:00
monte.ohrt
c188b50ecc
change ereg to preg
2010-02-16 15:20:47 +00:00
Uwe.Tews
239462fde4
- bugfix $smarty.const... inside doublequoted strings and backticks was compiled into wrong PHP code
2010-02-14 20:26:57 +00:00
Uwe.Tews
9afda44ebf
- added missing _plugins property in smarty.class.php
2010-02-14 16:42:39 +00:00
Uwe.Tews
78c2e92f19
- bugfix on nested {block} tags
...
- changed Smarty special variable $smarty.parent to $smarty.block.parent
2010-02-12 15:56:17 +00:00
Uwe.Tews
99ab6e96a5
- added support of nested {bock} tags
2010-02-12 01:14:34 +00:00
Uwe.Tews
cb0ba1908a
- allow Smarty tags inside <? ... ?> tags in SMARTY_PHP_QUOTE and SMARTY_PHP_PASSTHRU mode
...
- bugfix at new "for" syntax like {for $x=1 to 10 step 2}
2010-02-10 20:51:36 +00:00
Uwe.Tews
9f5d885835
- avoid possible notice on $smarty->cache->clear(...), $smarty->clear_cache(....)
2010-02-10 18:00:41 +00:00
Uwe.Tews
43ae585e5e
- added $smarty->_tag_stack for tracing block tag hierarchy
2010-02-09 21:20:17 +00:00
Uwe.Tews
24141e81dd
- bugfix use template fullpath at §smarty->cache->clear(...), $smarty->clear_cache(....)
2010-02-08 21:04:43 +00:00
monte.ohrt
c2ff808db6
update README
2010-02-08 17:49:26 +00:00
monte.ohrt
fbebb5bb02
update wrapper
2010-02-08 17:41:48 +00:00
Uwe.Tews
b48ef33cd5
- bugfix of cache filename on extended templates when force_compile=true
2010-02-08 17:39:48 +00:00
monte.ohrt
0c2b18c727
move getTemplateVars() into data object
2010-02-08 17:31:15 +00:00
monte.ohrt
5be6130f0c
update API list
2010-02-08 17:08:09 +00:00
Uwe.Tews
7bfa54f067
- bugfix on changes of 05/02/2010
2010-02-07 22:21:37 +00:00
Uwe.Tews
d19fbb19d9
- bugfix on changes of 05/02/2010
2010-02-07 20:45:44 +00:00
Uwe.Tews
063cb19f18
- preserve line endings type form template source
2010-02-07 12:49:57 +00:00
Uwe.Tews
ae49fe099b
- minor fixes on API update
2010-02-07 11:09:28 +00:00
monte.ohrt
8f8a11f733
add new files
2010-02-07 03:03:48 +00:00
monte.ohrt
9af377d7d3
major API update
2010-02-06 22:11:10 +00:00
Uwe.Tews
3ad446bb21
- bugfix on modifier and block plugins with same name
2010-02-05 17:03:22 +00:00
Uwe.Tews
fde7a592f4
- retaining newlines at registered functions and function plugins
2010-02-02 20:09:57 +00:00
Uwe.Tews
3c88d12e00
- added test that $_SERVER['SCRIPT_NAME'] does exist in Smarty.class.php
2010-01-25 19:02:34 +00:00
Uwe.Tews
8defafbb14
- bugfix cache resource was not loaded when caching was globally off but enabled at a template object
2010-01-25 18:10:35 +00:00
Uwe.Tews
e89c15d65d
- new method $smarty->createData([$parent]) for creating a data object (required for bugfixes below)
...
- bugfix config_load() method now works also on a data object
- bugfix get_config_vars() method now works also on a data and template objects
- bugfix clear_config() method now works also on a data and template objects
2010-01-22 16:39:30 +00:00
Uwe.Tews
cfea085629
- bugfix on plugins if same plugin was called from a nocache section first and later from a cached section
2010-01-19 17:01:10 +00:00
Uwe.Tews
2c570f25b9
- bugfix on $smarty.const... in double quoted strings
2010-01-17 15:52:37 +00:00
Uwe.Tews
f11e4e40bc
- internal change of config file lexer/parser on handling of section names
...
- bugfix on registered objects (format parameter of register_object was not handled correctly)
2010-01-16 12:03:53 +00:00
Uwe.Tews
da2f22438c
- allow special characters in config file section names for Smarty2 BC
2010-01-14 22:05:32 +00:00
Uwe.Tews
383e4bb4ae
- revert handling of newline on no output tags like {if...}
2010-01-14 20:57:27 +00:00
Uwe.Tews
13444e9781
- bugfix on special Smarty variable $smarty.cookies
2010-01-14 19:12:14 +00:00
Uwe.Tews
db2c655322
- bugfix allow absolute filepath for config files
2010-01-14 16:43:43 +00:00
Uwe.Tews
ecfc492298
- bugfix on backslash within single quoted strings
2010-01-14 15:57:09 +00:00
Uwe.Tews
19c0e47495
- bugfix on {if} tags
2010-01-13 15:33:54 +00:00
Uwe.Tews
51ed5b7861
- closed possible security hole at <?php ... ?> tags
...
- bugfix of config file parser on large config files
2010-01-12 22:12:19 +00:00
Uwe.Tews
db887adc37
- bugfix the {function..} tag did not accept the name attribute in double quotes
2010-01-12 20:37:05 +00:00
Uwe.Tews
f83fd47acc
- changed back modifer handling in parser. Some restrictions still apply:
...
if modifiers are used in side {if...} expression or in mathematical expressions
parentheses must be used.
2010-01-12 19:05:26 +00:00
Uwe.Tews
aabc4352c2
- added optional nocache attribute to {block} tags in parent template
...
- updated <?php...?> handling supporting now heredocs and newdocs. (thanks to Thue Jnaus Kristensen)
2010-01-11 20:44:01 +00:00
Uwe.Tews
e912e731bc
- added missing support of insert plugins
2010-01-11 20:22:41 +00:00
Uwe.Tews
cdd2aae582
- added \n to the compiled code of the {if},{else},{elseif},{/if} tags to get output of newlines as expected by the template source
2010-01-11 17:58:10 +00:00
Uwe.Tews
64503880b3
- added \n to the compiled code of the {/if} tag to get output of newlines as expected by the template source
2010-01-11 17:36:37 +00:00
Uwe.Tews
a3459b2e3a
- bugfix on nocache {block} tags in parent templates
2010-01-09 19:23:35 +00:00
Uwe.Tews
6c020763a8
- bugfix on variable filters. filter/nofilter attributes did not work on output statements
2010-01-08 15:54:21 +00:00
Uwe.Tews
17a8c7f0a2
- bugfix on file dependendcy at template inheritance
...
- bugfix on nocache code at template inheritance
2010-01-07 19:33:18 +00:00
Uwe.Tews
1227de42cc
- bugfix for custom delimiter at extends resource and {extends} tag
2010-01-06 18:48:50 +00:00
Uwe.Tews
ceb4cb75c7
- bugfix for custom delimiter at extends resource and {extends} tag
2010-01-06 17:31:59 +00:00
Uwe.Tews
57fd94ddb1
- fixed typo in smarty_internal_resource_registered
2010-01-06 15:52:33 +00:00
Uwe.Tews
d287c6b1d9
- bugfix sha1() calculations at extends resource and some general improvments on sha1() handling
2010-01-05 21:10:25 +00:00
Uwe.Tews
a6c2f5f8d4
- internal change on building cache files
2010-01-03 11:53:28 +00:00
Uwe.Tews
4519218f04
- update cached_timestamp at the template object after cache file is written to avoid possible side effects
...
- use internally always SMARTY_CACHING_LIFETIME_* constants
2010-01-02 12:15:04 +00:00
Uwe.Tews
b5ff9e450f
- bugfix for {php} tag (trow an exception if allow_php_tag = false)
2010-01-01 20:19:26 +00:00
Uwe.Tews
8c93e0765a
- bugfix for obtaining plugins which must be included (related to change of 12/30/2009)
2010-01-01 12:07:36 +00:00
Uwe.Tews
72219be200
- optimization of generated code for doublequoted strings containing variables
...
- rewrite of {function} tag handling
- can now be declared in an external subtemplate
- can contain nocache sections (nocache_hash handling)
- can be called in noccache sections (nocache_hash handling)
- new {call..} tag to call template functions with a variable name {call name=$foo}
- fixed nocache_hash handling in merged compiled templates
2009-12-31 16:38:12 +00:00
Uwe.Tews
a6c4c0b192
- bugfix for plugins defined in the script as smarty_function_foo
2009-12-30 14:26:42 +00:00
Uwe.Tews
67641b63e8
- fixed cache filename for custom resources
2009-12-29 23:46:31 +00:00
Uwe.Tews
7a8e24cfc1
- internal change on merging some data
2009-12-29 22:27:04 +00:00
Uwe.Tews
8327f57f36
2009-12-29 20:12:51 +00:00
Uwe.Tews
d1969d6f56
- use sha1() for filepath encoding
...
- updates on nocache_hash handling
2009-12-29 20:12:11 +00:00
Uwe.Tews
589f736efa
- fixed bug loading modifiers in child template at template inheritance
2009-12-28 20:46:31 +00:00
monte.ohrt
5d6b87d9a1
replace md5 with str_replace
2009-12-28 17:41:27 +00:00
Uwe.Tews
8ad3fade36
- adding md5 to nocache_hash
2009-12-28 17:02:48 +00:00
Uwe.Tews
de4957a151
- update for security fixes
...
- make modifier plugins always trusted
2009-12-28 15:27:13 +00:00
monte.ohrt
f908aa0a27
update cache logic to use secure dynamic cache id
2009-12-28 05:08:45 +00:00
monte.ohrt
55d50efb1d
set default cache lifetime to 3600, BC with Smarty 2
2009-12-28 03:22:57 +00:00
Uwe.Tews
997b8cd73f
- fixed bug on modifier plugins at nocache output
2009-12-27 22:26:06 +00:00
Uwe.Tews
36da15cee8
- update of getCachedTimestamp()
2009-12-27 19:12:51 +00:00
Uwe.Tews
44dd7830dd
--- this is a major update with a couple of internal changes ---
...
- new config file lexer/parser (thanks to Thue Jnaus Kristensen)
- template lexer/parser fixes for PHP and {literal} handing (thanks to Thue Jnaus Kristensen)
- fix on registered plugins with different type but same name
- rewrite of plugin handling (optimized execution speed)
- closed a security hole regarding PHP code injection into cache files
- fixed bug in clear cache handling
- Renamed a couple of internal classes
- code cleanup for merging compiled templates
- couple of runtime optimizations (still not all done)
2009-12-27 15:06:49 +00:00
Uwe.Tews
5f02276a2a
- bugfix on comment lines in config files
2009-12-19 16:57:12 +00:00
Uwe.Tews
8f7a70de38
- bugfix on comment lines in config files
2009-12-19 12:36:15 +00:00
Uwe.Tews
be04e0904c
- fixed {strip} handling in auto literals
2009-12-17 20:39:11 +00:00
Uwe.Tews
aaa7b8f245
- bugfix of parent/global variable update at included/merged subtemplates
...
- encode final template filepath into filename of compiled and cached files
2009-12-17 16:58:44 +00:00
Uwe.Tews
13448b9b0b
- added {include file='foo.tpl' inline} inline option to merge compiled code of aubtemplate into the calling template
2009-12-16 17:05:31 +00:00
Uwe.Tews
5385475a5e
- update of changelog
2009-12-16 16:27:06 +00:00
Uwe.Tews
8d5fab37e8
- bugfix on object as array index
2009-12-15 00:02:10 +00:00
Uwe.Tews
7406a7386a
- allow !$foo as value
2009-12-13 20:21:54 +00:00
Uwe.Tews
b2db17992b
- bugfix on single quote inside {function} tag
2009-12-12 11:51:07 +00:00
Uwe.Tews
c5f8ceb5e9
- fix short append/prepend attributes in {block} tags
2009-12-12 10:50:40 +00:00
Uwe.Tews
5219139f6b
- bugfix on clear_compiled_tpl (avoid possible warning)
2009-12-11 14:26:57 +00:00
Uwe.Tews
048fd5e274
- bugfix on {function} tags and template inheritance
2009-12-10 17:23:32 +00:00
Uwe.Tews
bec015821a
- fixed documentation of extends resource
2009-12-06 12:25:19 +00:00
Uwe.Tews
74a20f4650
- removed unneeded lexer code
2009-12-05 15:10:47 +00:00
Uwe.Tews
1723b98ce0
- fixed problem when a cached file was fetched several times
2009-12-05 13:38:09 +00:00
monte.ohrt
cd5cc650d8
add automagic formatting for date() and strftime()
2009-12-05 05:30:20 +00:00
Uwe.Tews
85c8676988
- added file SMARTY2_BC_NOTES
2009-12-04 16:37:31 +00:00
Uwe.Tews
7e6da87134
- added max attribute to for loop
...
- added security mode allow_super_globals
2009-12-04 15:44:47 +00:00
Uwe.Tews
19413d8dab
- bugfix for {$foo.$x.$y.$z}
2009-12-04 00:18:54 +00:00
Uwe.Tews
9ee61377fa
- README
2009-12-03 22:50:05 +00:00
Uwe.Tews
1573bf813c
- added {for $foo = 1 to 5 step 2} syntax
2009-12-03 22:39:45 +00:00
Uwe.Tews
91da0aa7fe
- template inheritance: child templates can now call functions defined by the {function} tag in the parent template
2009-12-03 19:49:17 +00:00
Uwe.Tews
2c23dccf3b
- use $template_class property for template class name when compiling {include},{eval} and {extends} tags
2009-12-01 22:24:31 +00:00
Uwe.Tews
7e45bcf527
- replaced most hard errors (exceptions) by softerrors(trigger_error) in plugins
2009-12-01 20:34:32 +00:00
Uwe.Tews
e5cd6c8a17
- removed cache resource plugin for mysql from the distribution
2009-12-01 19:36:58 +00:00
Uwe.Tews
a8a17d09e9
- fixed parsing of names of special formated tags like if,elseif,while,for,foreach
...
- removed direct access to constants in templates because of some syntax problems
2009-12-01 17:08:54 +00:00
Uwe.Tews
4c4ce1e5bf
- update of comment
2009-11-30 21:20:09 +00:00
Uwe.Tews
89e53f6372
- allow {function} tags within {block} tags
2009-11-30 19:56:17 +00:00
Uwe.Tews
319f0c88fb
- map 'true' to SMARTY_CACHING_LIFETIME_CURRENT for the $smarty->caching parameter
2009-11-30 17:52:13 +00:00
Uwe.Tews
732ab27055
- ignore compile_id at debug template
...
- added direct access to constants in templates
- some lexer/parser optimizations
2009-11-28 18:48:02 +00:00
Uwe.Tews
9f18a6bf62
- added comment with MYSQL create table command
2009-11-27 21:06:17 +00:00
Uwe.Tews
27d3a21fb4
- added cache resource MYSQL plugin
2009-11-27 20:46:56 +00:00
Uwe.Tews
255eec00ae
- bugfix double quoted string
2009-11-27 00:43:38 +00:00
Uwe.Tews
be47f5773e
- fix on checking dynamic varibales with error_unassigned = true
2009-11-26 23:36:30 +00:00
Uwe.Tews
25270df6bd
- correct line number on unknown tag error message
...
- changed {include} compiled code
2009-11-26 22:49:56 +00:00
Uwe.Tews
f3f01b928a
2009-11-26 21:08:45 +00:00
Uwe.Tews
4afab27bd8
- {strip} tag functionality rewritten
2009-11-25 20:56:51 +00:00
Uwe.Tews
f94acef2cc
- allow null, NULL, Null
2009-11-25 16:44:02 +00:00
Uwe.Tews
e80531444b
- allow the following writing for boolean: true, TRUE, True, false, FALSE, False
2009-11-25 16:27:06 +00:00
Uwe.Tews
2bab2f147d
- bugfix for $smarty->config_overwrite = false
2009-11-24 20:33:40 +00:00
Uwe.Tews
4925a98949
- suppress warnings on unlink caused by race conditions
...
- correct line number on unknown tag error message
2009-11-23 22:31:22 +00:00
Uwe.Tews
963b13b0af
- fixed configfile parser for text starting with a numeric char
...
- the default_template_handler_func may now return a filepath to a template source
2009-11-23 16:05:30 +00:00
Uwe.Tews
631e3023cc
- bugfix for empty config files
...
- convert timestamps of registered resources to integer
2009-11-20 21:49:20 +00:00
Uwe.Tews
cc4058c633
- compiled templates are no longer touched with the filemtime of template source
2009-11-19 14:45:04 +00:00
Uwe.Tews
6b506c4b40
- allow integer as attribute name in plugin calls
2009-11-18 21:51:20 +00:00
Uwe.Tews
4e98b48c7c
- make $smarty->_current_file available during compilation for Smarty2 BC
2009-11-18 17:43:39 +00:00
Uwe.Tews
4286ad068b
- observe umask settings when setting file permissions
...
- avoide unneeded cache file creation for subtemplates which did occur in some situations
2009-11-18 17:25:18 +00:00
Uwe.Tews
e081d85b79
- bugfix cycle plugin
2009-11-17 20:17:51 +00:00
Uwe.Tews
1470251f18
- renamed extend tag and resource to extens: {extends file='foo.tol'} , $smarty->display('extends:foo.tpl|bar.tpl);
2009-11-17 19:03:06 +00:00
Uwe.Tews
724a31ce11
- added {foreach $array as $key=>$value} syntax
2009-11-17 18:09:29 +00:00
Uwe.Tews
a63bc0f83b
- sanitize compile_id and cache_id (replace illegal chars with _)
...
- use _dir_perms and _file_perms properties at file creation
- new constant SMARTY_RESOURCE_DATE_FORMAT (default '%b %e, %Y') which is used as default format in modifier date_format
2009-11-17 17:46:03 +00:00
monte.ohrt
72de1a7b33
fix delimiter setting
2009-11-17 01:31:44 +00:00
Uwe.Tews
9f505c1c23
- lexer/parser optimizations on quoted strings
2009-11-15 19:05:53 +00:00
Uwe.Tews
960fd1b3a9
- parser could run into a PHP error on wrong file attribute
2009-11-14 20:09:18 +00:00
Uwe.Tews
5b6050bf54
- fix on merging compiled templates with nocache sections in nocache includes
2009-11-14 16:20:18 +00:00
Uwe.Tews
6154717b48
- fixed locaion where outputfilters are running
...
- fixed config file definitions at EOF
2009-11-14 13:02:48 +00:00
Uwe.Tews
d482a8b137
- bugfix modifiers on registered object tags
2009-11-14 10:40:08 +00:00
Uwe.Tews
2e70e88b0f
- bugfix on merging compiled templates when source files got removed or renamed.
2009-11-14 10:08:27 +00:00
Uwe.Tews
39b25f8db8
- fix on nocache code in child {block} tags
2009-11-12 22:50:48 +00:00
Uwe.Tews
da8e893358
2009-11-12 22:13:21 +00:00
Uwe.Tews
e47a58fb6a
- added description of template inheritance
2009-11-12 21:56:54 +00:00
Uwe.Tews
f149804f3e
- added scope to Smarty variables in the {block} tag compiler
2009-11-12 21:32:46 +00:00
Uwe.Tews
55b2d90fb8
- fixed variable filenames in {include_php} and {insert}
2009-11-12 17:20:42 +00:00
Uwe.Tews
7af23e23b6
- changed debugging handling
2009-11-11 22:09:06 +00:00
Uwe.Tews
ad70b964cb
- removed checking for reserved variables
2009-11-11 16:54:04 +00:00
Uwe.Tews
ba6ba0cf8d
- fixed {foreachelse}, {forelse}, {sectionelse} compiled code at nocache variables
2009-11-11 16:15:47 +00:00
Uwe.Tews
d35746dd26
- fixed preg_qoute on delimiters
2009-11-10 16:04:32 +00:00
Uwe.Tews
60601acc25
2009-11-09 21:50:11 +00:00
Uwe.Tews
039d9044da
2009-11-09 21:22:28 +00:00
Uwe.Tews
6f7896c87b
- bugfix for {function} block tags in included templates
2009-11-09 20:56:50 +00:00
Uwe.Tews
9f77baac25
- new SMARTY_SPL_AUTOLOAD constant to control the autoloader option
2009-11-09 17:26:59 +00:00
Uwe.Tews
ff8c1050e4
- lexer/parser bugfix
2009-11-09 16:30:56 +00:00
Uwe.Tews
2e61999def
- fixed alphanumeric array index
2009-11-08 21:01:22 +00:00
Uwe.Tews
ce18a4cc15
- bugfix on complex double quoted strings
2009-11-08 16:17:51 +00:00
Uwe.Tews
6a9924162b
- lexer/parser fix for null,true,false as array index
2009-11-06 17:40:20 +00:00
Uwe.Tews
b7876e55ec
- register only smartyAutoload
2009-11-06 16:51:46 +00:00
monte.ohrt
3386b94e15
change linefeed style to native on all files
2009-11-06 14:35:00 +00:00
Uwe.Tews
5c2b897534
- config_load method can now be called on data and template objects
2009-11-05 18:22:40 +00:00
Uwe.Tews
db0767a71e
- bugfix on complex indexed special Smarty variables
2009-11-04 17:54:00 +00:00
Uwe.Tews
caac4bb841
- added typecasting support for template variables
2009-11-04 16:03:25 +00:00
Uwe.Tews
94b80e892b
- renamed function names of autoloaded Smarty methods to Smarty_Method_....
...
- new security_class property (default is Smarty_Security)
2009-11-03 20:38:38 +00:00
Uwe.Tews
05c64b7748
- fixed file dependency for {incude} inside {block} tag
...
- fixed not compiling on non existing compiled templates when compile_check = false
2009-11-03 18:02:13 +00:00
monte.ohrt
4babb2e550
add smarty property, fix typo
2009-11-03 15:51:29 +00:00
monte.ohrt
23c4e77f14
fix typo
2009-11-03 15:46:22 +00:00
Uwe.Tews
bbbb5e098e
- fixed parser error on objects with special smarty vars
2009-11-03 15:23:18 +00:00
Uwe.Tews
67af69cbb1
- throw exception on illegal Smarty() constructor calls
2009-11-02 23:04:10 +00:00
Uwe.Tews
7409a9061d
- remove last change for unquoted attribute values
2009-11-02 22:25:35 +00:00
monte.ohrt
182e40d4e9
remove tabs
2009-11-02 21:20:36 +00:00
monte.ohrt
469975c237
remove tabs
2009-11-02 21:19:57 +00:00
monte.ohrt
6eb95b0b30
update README
2009-11-02 21:14:10 +00:00
Uwe.Tews
15ee358dd7
- change on unquoted attribute values
2009-11-02 20:21:28 +00:00
Uwe.Tews
8d6607d410
- added neq,lte,gte,mod as aliases to if conditions
2009-11-02 17:49:57 +00:00
monte.ohrt
b48f460a63
fix spl_autoload when autoloaders exist
2009-11-01 16:26:06 +00:00
Uwe.Tews
cf379474fd
- change of filenames in sysplugins folder for internal spl_autoload function
...
- lexer/parser changed for increased compilation speed
2009-10-31 00:44:58 +00:00
monte.ohrt
6efbb3ee58
fix typo
2009-10-29 14:02:21 +00:00
monte.ohrt
466805978c
add SVN Id
2009-10-29 13:39:02 +00:00
monte.ohrt
1374718163
add $Rev$ to version number
2009-10-29 13:37:10 +00:00
Uwe.Tews
100d72ffbe
- fixed missing quotes in include_php.php
2009-10-28 15:37:50 +00:00
Uwe.Tews
fa9290135f
- pass {} through as literal
2009-10-27 20:25:16 +00:00
Uwe.Tews
5584d80b98
- fixed typo in method.register_resource
2009-10-27 16:25:15 +00:00
Uwe.Tews
eddbf62d03
- merge only compiled subtemplates into the compiled code of the main template
2009-10-26 20:36:26 +00:00
uwe.tews
6c7c18d79f
- fixed merging of recursive includes
2009-10-24 09:27:53 +00:00
uwe.tews
f88b868d5a
- fixed nocache vars at internal block tags
2009-10-24 08:41:54 +00:00
uwe.tews
4914c90e9a
- fixed nocache var problem
2009-10-23 16:49:21 +00:00
uwe.tews
8dd550f216
- fixed nocache var problem
2009-10-23 15:14:33 +00:00
uwe.tews
28f883ca8e
- fixed nocache var problem
2009-10-22 23:05:14 +00:00
Uwe.Tews
ecb5c84d5d
- fix trimwhitespace outputfilter parameter
2009-10-22 13:08:43 +00:00
Uwe.Tews
60d1a30791
- fixed nocache variable inside if condition of {if} tag
2009-10-21 18:26:14 +00:00
Uwe.Tews
530c4bf108
- fixed function definitions on some autoloaded methods
2009-10-21 16:13:20 +00:00
Uwe.Tews
5fe16d23f0
- fixed file dependency for config files
...
- some code optimizations
2009-10-21 15:19:00 +00:00
Uwe.Tews
4a68612a5a
- added {$foo++}{$foo--} syntax
...
- buxfix changed PHP "if (..):" to "if (..){" because of possible bad code when concenating PHP tags
- autoload Smarty internal classes
2009-10-21 09:49:43 +00:00
Uwe.Tews
dc592e5a44
- check at compile time for variable filter to improve rendering speed if no filter is used
...
- fixed bug at combination of {elseif} tag and {...} in double quoted strings of static class parameter
2009-10-20 17:09:22 +00:00
Uwe.Tews
fad5c12f3a
- fixed compiled template merging on variable double quoted strings as name
2009-10-19 20:25:47 +00:00
Uwe.Tews
7189a3db28
- fixed bug in caching mode 2 and cache_lifetime -1
2009-10-19 18:32:35 +00:00
Uwe.Tews
88229447d1
- fixed modifier support on block tags
2009-10-19 14:36:57 +00:00
Uwe.Tews
5b554f80a4
new experimental version of compile_directory method
2009-10-17 14:40:02 +00:00
Uwe.Tews
72a04fe699
once again include template with variable name
2009-10-17 13:09:31 +00:00
Uwe.Tews
cd321f4bd6
- problem with variable names of included templates
2009-10-17 12:11:00 +00:00
Uwe.Tews
e73de1713b
- bugfix on variable include filename
2009-10-17 10:41:12 +00:00
Uwe.Tews
402e3f4272
- remove ?>\n<?php and ?><?php sequences from compiled template
2009-10-17 03:36:47 +00:00
Uwe.Tews
81ebefccea
experimental compile_directory method
2009-10-17 02:02:28 +00:00
Uwe.Tews
b8837aecba
- parser bugfix on array access
2009-10-16 16:54:25 +00:00
Uwe.Tews
395131c2d0
- buxfix on assigning array elements inside templates
2009-10-16 13:13:33 +00:00
Uwe.Tews
0fe0ad55c9
- allow bit operator '&' inside {if} tag
...
- implementation of ternary operator
2009-10-15 21:00:23 +00:00
Uwe.Tews
fb29f74f3d
added missing file
2009-10-15 13:51:41 +00:00
Uwe.Tews
5be5d4cf28
- do not recompile evaluated templates if reused just with other data
...
- recompile config files when config properties did change
- some lexer/parser otimizations
2009-10-13 19:44:38 +00:00
Uwe.Tews
526337aa23
- allow {block} tags inside included templates
...
- bugfix for resource plugins in Smarty2 format
- some optimizations of internal.template.php
2009-10-12 14:37:31 +00:00
Uwe.Tews
7afa8dce66
- fixed bug when template with same name is used with different data objects
...
- fixed bug with double quoted name attribute at {insert} tag
- reenabled assign_by_ref and append_by_ref methodes
2009-10-11 20:23:00 +00:00
Uwe.Tews
9eab32ff60
- removed block nesting checks for {capture}
2009-10-07 20:24:17 +00:00
Uwe.Tews
6869fa9a49
- bugfix on {insert}
2009-10-07 15:52:57 +00:00
Uwe.Tews
e62d6baa2a
- added support of "isinstance" to {if} tag
...
- bugfix in PHP resource
2009-10-05 18:55:22 +00:00
Uwe.Tews
585c115c94
- internal changes to improve performance
...
- fix registering of filters for classes
2009-10-04 18:12:30 +00:00
Uwe.Tews
9cc1533ac0
- update of README
2009-10-02 20:48:46 +00:00
Uwe.Tews
3c4b99ca34
-update of README
2009-10-02 15:30:32 +00:00
monte.ohrt
c4b46fe7c8
update for beta
2009-10-02 14:43:55 +00:00
Uwe.Tews
84a1428bf7
- removed default timezone setting
2009-10-01 17:09:49 +00:00
Uwe.Tews
c55e606278
- added missing file
2009-09-30 22:16:14 +00:00
Uwe.Tews
b85d0ca2db
- Update of README
2009-09-30 22:06:46 +00:00
Uwe.Tews
898819dd2b
- reactivated PHP resource for simple PHP templates. Must set allow_php_templates = true to enable
...
- {PHP} tag can be enabled by allow_php_tag = true
2009-09-30 22:03:41 +00:00
Uwe.Tews
25d4535be6
- fixed handling of template_exits methode for all resource types
2009-09-30 18:28:50 +00:00
Uwe.Tews
ed6df80a8f
- bugfix for other cache resources than file
2009-09-30 16:00:11 +00:00
Uwe.Tews
26949347e2
- the methodes assign_by_ref is now wrapped to assign, append_by_ref to append
...
- allow arrays of variables pass in display, fetch and createTemplate calls
$data = array('foo'=>'bar','foo2'=>'blar');
$smarty->display('my.tpl',$data);
2009-09-29 22:58:54 +00:00
Uwe.Tews
8387d1ef6f
- enabled short boolean attributes {some attr} equala {some attr=true}
2009-09-29 21:40:30 +00:00
Uwe.Tews
0fdcb79ec3
- allow $tpl->display(), $tpl->fetch(); and $tpl->is_cached() calls on template objects
2009-09-29 21:00:00 +00:00
Uwe.Tews
56e01e8a45
- allow Smarty2 and Smarty3 parameter ordering on display, fetch and create template
2009-09-29 20:36:29 +00:00
Uwe.Tews
3ab56b041e
- bugfix on <?php ?> tags
2009-09-29 18:52:58 +00:00
Uwe.Tews
6a5f07a1ad
- lexer fix for multiline <?php ...?> tags
2009-09-29 17:17:41 +00:00
Uwe.Tews
1af2723de9
- changed {php} tag handling
...
- removed support of Smarty::instance()
- removed support of PHP resource type
- improved execution speed of {foreach} tags
- fixed bug in {section} tag
2009-09-29 16:23:35 +00:00
Uwe.Tews
4faa5eff33
- reload of {section} tag fix
2009-09-27 17:58:33 +00:00
Uwe.Tews
97278555f7
- bugfix for {literal} tag inside comment
2009-09-26 23:06:57 +00:00
Uwe.Tews
441c1aa978
- update of $smarty->test() methode
2009-09-26 10:38:24 +00:00
Uwe.Tews
d2aeb81188
- bugfix on {section} tag
2009-09-26 10:32:36 +00:00
Uwe.Tews
324276f7fa
- improvements and bugfix on {include} tag handling
...
******************************************************************
NOTICE: existing compiled template and cache files must be deleted
******************************************************************
2009-09-23 16:50:16 +00:00
Uwe.Tews
5bf063d2cc
- fixed error in is_cached
2009-09-20 02:02:44 +00:00
Uwe.Tews
0e68cdd9d2
- replace internal "eval()" calls by "include" during rendering process
...
- speed improvment for templates which have included subtemplates
the compiled code of included templates is merged into the compiled code of the parent template
- added logical operator "xor" for {if} tag
- changed parameter ordering for Smarty2 BC
fetch($template, $cache_id = null, $compile_id = null, $parent = null)
display($template, $cache_id = null, $compile_id = null, $parent = null)
createTemplate($template, $cache_id = null, $compile_id = null, $parent = null)
- property resource_char_set is now replaced by constant SMARTY_RESOURCE_CHAR_SET
- fixed handling of classes in registered blocks
- speed improvement of lexer on text sections
2009-09-19 13:22:32 +00:00
Uwe.Tews
1c30387c96
- update extend resource
2009-09-11 18:59:48 +00:00
Uwe.Tews
b360c7cb5b
- bugfix {extend} tag
...
- bugfix of automatic literals
2009-09-11 15:11:21 +00:00
Uwe.Tews
6c5c0a156e
- bugfix for very large {block} tag content
2009-09-10 23:08:06 +00:00
Uwe.Tews
11a748a6e9
- removed var_dump
2009-09-08 18:58:15 +00:00
Uwe.Tews
62061b73e2
- bugfix on clear_cache()
2009-09-08 18:54:22 +00:00
Uwe.Tews
1cdb112388
- bugfix
2009-09-01 22:04:30 +00:00
Uwe.Tews
5563fc9fd5
- dropped nl2br as plugin
...
- added '<>' as comparission operator in {if} tags
- cached caching_lifetime property to cache_liftime for backward compatibility with Smarty2.
{include} optional attribute is also now cache_lifetime
- fixed trigger_error methode (moved into Smarty class)
- version is now Beta!!!
2009-09-01 21:11:42 +00:00
Uwe.Tews
45ba48f2b6
- some speed optimizations on loading internal plugins
2009-08-30 18:10:01 +00:00
monte.ohrt
770ef89611
remove built-in exception handling, add DS as shorthand to DIRECTORY_SEPARATOR
2009-08-29 22:57:29 +00:00
Uwe.Tews
bfefb8e017
- implemented caching of registered Resources
...
- new property 'auto_literal'. if true(default) '{ ' and ' }' interpreted as literal, not as Smarty delimiter
2009-08-29 16:29:52 +00:00
Uwe.Tews
a13ae6628c
- Fix on line breaks inside {if} tags
2009-08-28 18:32:31 +00:00
Uwe.Tews
8c48521260
- fixed wrong case at require_once
2009-08-27 16:02:44 +00:00
Uwe.Tews
4331452b8e
- implemented registered resources as in Smarty2. NOTE: caching does not work yet
...
- new property 'force_cache'. if true it forces the creation of a new cache file
- fixed modifiers on arrays
- some speed optimization on loading internal classes
2009-08-27 14:59:28 +00:00
Uwe.Tews
e759f76661
- bugfix - the output of plugins was not cached
...
- added global variable SCRIPT_NAME
2009-08-24 19:26:31 +00:00
Uwe.Tews
b688c24976
- fixed typo in lexer definition for '!==' operator
2009-08-24 15:31:31 +00:00
Uwe.Tews
5fce224f8d
- fixed problems whitespace in conjunction with custom delimiters
...
- Smarty tags can now be used as value anywhere
2009-08-21 14:50:34 +00:00
Uwe.Tews
c12c6d9471
2009-08-18 18:43:06 +00:00
Uwe.Tews
eef7400f55
- definition of template class name moded in internal.templatebase.php
...
- whitespace parser changes
2009-08-18 16:53:33 +00:00
Uwe.Tews
6e9350f7c7
- fixed parser problems
2009-08-12 16:43:37 +00:00
Uwe.Tews
9fecdb57b8
- fixed parser problems with custom delimiter
2009-08-11 18:53:23 +00:00
Uwe.Tews
0ba34008a7
- update of mb support in plugins
2009-08-10 17:52:26 +00:00
Uwe.Tews
a693a00280
- fixed problems with doublequoted strings at name attribute of {block} tag
...
- bugfix at scope attribute of {append} tag
2009-08-09 22:03:33 +00:00
Uwe.Tews
d2d8c8925b
- removed all internal calls of Smarty::instance()
...
- fixed code in double quoted strings
2009-08-08 17:28:23 +00:00
Uwe.Tews
fc9b7eef10
- bugfix of \n.\t etc in double quoted strings
2009-08-05 19:41:49 +00:00
Uwe.Tews
8b555a5903
- bugfix mb_string support
2009-08-05 19:40:48 +00:00
Uwe.Tews
83cc212060
- added syntax for variable config vars like #$foo#
2009-07-29 16:43:54 +00:00
Uwe.Tews
85998e3fca
- fixed parsing of $smarty.session vars containing objects
2009-07-28 19:26:56 +00:00
Uwe.Tews
21659a76e8
- fix of "$" handling indouble quoted strings
2009-07-22 16:22:24 +00:00
Uwe.Tews
0c7113d98e
2009-07-21 17:41:16 +00:00
Uwe.Tews
51cc106811
- fix that {$smarty.current_dir} returns correct value within {block} tags.
2009-07-21 16:26:11 +00:00
Uwe.Tews
12ef15812c
- drop error message on unmatched {block} {/block} pairs
2009-07-20 15:38:11 +00:00
monte.ohrt
e348a33cf0
change split() to preg_split(), deprecated in php 5.3
2009-07-05 05:03:24 +00:00
monte.ohrt
3463a3a090
add SMARTY_EXCEPTION_HANDLER constant to determine if internal exception handling is enabled
2009-07-03 14:48:38 +00:00
Uwe.Tews
b288d014f4
- fixed smarty_function_html_options call in plugin function.html_select_date.php (missing ,)
2009-07-01 20:19:04 +00:00
Uwe.Tews
18b939331e
- fixed smarty_function_html_options call in plugin function.html_select_date.php
2009-06-24 16:27:42 +00:00
Uwe.Tews
581620d8cd
- fix on \n and spaces inside smarty tags
...
- removed request_use_auto_globals propert as it is no longer needed because Smarty 3 will always run under PHP 5
2009-06-22 14:23:21 +00:00
Uwe.Tews
f5aabcd47f
- added $smarty.current_dir which returns the current working directory
2009-06-18 18:51:21 +00:00
Uwe.Tews
b6b4d90487
- fixed compilation of block plugins when caching enabled
2009-06-18 17:46:25 +00:00
Uwe.Tews
ce9a656829
- allow smarty tags within xml tags
...
- PHPunit update
2009-06-14 13:08:13 +00:00
Uwe.Tews
ae3c3fce48
- fixed array access on super globals
...
- changed internal access to smarty object
2009-06-14 11:07:26 +00:00
Uwe.Tews
18a3bb1971
- instantiate classes of plugins instead of calling them static
2009-06-13 21:05:57 +00:00
Uwe.Tews
06ce127133
- bugfix at extend resource: create unique files for compiled template and cache for each combination of template files
...
- update extend resource to handle appen and prepend block attributes
2009-06-13 20:39:56 +00:00
Uwe.Tews
30bd8f119b
- fixed repeat at block plugins
2009-06-03 18:07:15 +00:00
Uwe.Tews
d4558ca158
- fixed problem with caching of compiler plugins
2009-05-25 21:14:44 +00:00
Uwe.Tews
1084678645
- fixed directory separator handling
2009-05-14 10:53:28 +00:00
Uwe.Tews
bd6b49ee1e
- syntax change for stream variables
2009-05-09 12:44:43 +00:00
Uwe.Tews
8f8111a449
- fixed bug when using absolute template filepath and caching
2009-05-09 07:04:55 +00:00
Uwe.Tews
0a64988240
- fixed bug of {nocache} tag in included templates
2009-05-08 11:34:21 +00:00
Uwe.Tews
ff4619801a
- allow that plugins_dir folder names can end without directory separator
2009-05-06 07:46:08 +00:00
Uwe.Tews
d7a8731ac9
- fixed E_STRICT incompabilities
...
- {function} tag bug fix
- security policy definitions have been moved from plugins folder to file Security.class.php in libs folder
- added allow_super_global configuration to security
2009-05-05 17:19:33 +00:00
Uwe.Tews
5bbc44f35d
- functions defined with the {function} tag now always have global scope
2009-04-30 17:39:17 +00:00
Uwe.Tews
f3c58dfa8d
- allow that cache_dir can end without directory separator
2009-04-29 19:31:33 +00:00
Uwe.Tews
0b9887cc17
- allow that cache_dir can end without directory separator
2009-04-29 19:25:44 +00:00
Uwe.Tews
d7093433ae
- fixed problem with directory setter methodes
2009-04-29 17:56:56 +00:00
Uwe.Tews
4c794a3d70
- the {function} tag can no longer overwrite standard smarty tags
...
- inherit functions defined by the {fuction} tag into subtemplates
- added {while <statement>} sytax to while tag
2009-04-28 15:37:13 +00:00
Uwe.Tews
c724b720be
- added trusted stream checking to security
...
- internal changes at file dependency check for caching
2009-04-26 16:56:17 +00:00
Uwe.Tews
4f4f2d3dd3
- changed name of {template} tag to {function}
2009-04-24 22:36:12 +00:00
Uwe.Tews
e315782819
- added new {template} tag
2009-04-24 19:59:51 +00:00
Uwe.Tews
1ee0747801
- fixed access of special smarty variables from included template
2009-04-23 13:32:45 +00:00
Uwe.Tews
d991f96423
- unified template stream syntax with standard Smarty resource syntax $smarty->display('mystream:mytemplate')
2009-04-21 22:09:17 +00:00
Uwe.Tews
453d8a23da
- change of new style syntax for forach. Now: {foreach $array as $var} like in PHP
2009-04-21 18:02:34 +00:00
Uwe.Tews
380cb27945
- fixed "$foo.bar ..." variable replacement in double quoted strings
2009-04-20 20:33:14 +00:00
Uwe.Tews
73fe38c488
- fixed error in {include} tag with variable file attribute
2009-04-20 14:08:02 +00:00
Uwe.Tews
152cedb75c
- added stream resources ($smarty->display('mystream://mytemplate'))
...
- added stream variables {$mystream:myvar}
2009-04-18 14:46:29 +00:00
Uwe.Tews
24e3218d28
- added {if 'expression' is in 'array'} syntax
2009-04-14 12:41:07 +00:00
Uwe.Tews
1970c0cbdb
- fixed compile_id handling on {include} tags
2009-04-14 11:25:45 +00:00
Uwe.Tews
3d0b7663e2
- fixed compile_id handling on {include} tags
2009-04-14 10:31:02 +00:00
Uwe.Tews
04fc33b99a
- fixed append/prepend attributes in {block} tag
...
- added {if 'expression' is in 'array'} syntax
- use crc32 as hash for compiled config files.
2009-04-14 09:04:15 +00:00
Uwe.Tews
139b3d4570
- fixed scope problem with parent variables when appending variables within templates.
...
- fixed code for {block} without childs (possible sources for notice errors removed)
2009-04-12 22:26:02 +00:00
Uwe.Tews
bdb43faab3
- update on append and prepend attribute at {block} tag
2009-04-12 05:40:30 +00:00
Uwe.Tews
62039b5e24
- added append and prepend attribute to {block} tag
2009-04-12 02:30:54 +00:00
Uwe.Tews
c9b789ca32
- fixed variables in 'file' attribute of {extend} tag
...
- fixed problems in modifiers (if mb string functions not present)
2009-04-11 08:47:28 +00:00
Uwe.Tews
ba61f12384
- check if mb string functions available otherwise fallback to normal string functions
2009-04-10 15:52:59 +00:00
Uwe.Tews
1262b7d873
- parser update
2009-04-10 14:31:23 +00:00
Uwe.Tews
eace27e2b6
- added global variable scope SMARTY_GLOBAL_SCOPE
...
- enable 'variable' filter by default
2009-04-10 12:33:51 +00:00
Uwe.Tews
33082844a5
- fixed {$smarty.block.parent.foo}
2009-04-10 02:29:46 +00:00
Uwe.Tews
066467ca82
- implementation of a 'variable' filter as replacement for default modifier
...
- update of unregister_....filter methods
2009-04-10 01:15:53 +00:00
Uwe.Tews
a424da0671
- syntax corrections on variable object property
2009-04-09 17:43:32 +00:00
Uwe.Tews
ba74349d59
- fixed execution of filters defined by classes
2009-04-09 16:38:07 +00:00
Uwe.Tews
57d190e997
- compile the always the content of {block} tags to make shure that the filters are running over it
...
- syntax corrections on variable object property
- syntax corrections on array access in dot syntax
2009-04-09 15:53:52 +00:00
Uwe.Tews
8bcd6514b5
- allow variable object property
2009-04-08 14:47:28 +00:00
Uwe.Tews
9b41308bf6
- changed variable scopes to SMARTY_LOCAL_SCOPE, SMARTY_PARENT_SCOPE, SMARTY_ROOT_SCOPE to avoid possible conflicts with user constants
...
- Smarty variable global attribute replaced with scope attribute
2009-04-07 16:22:31 +00:00
Uwe.Tews
0ab30877db
- variable scopes LOCAL_SCOPE, PARENT_SCOPE, ROOT_SCOPE
...
- more getter/setter methodes
2009-04-06 02:53:09 +00:00
Uwe.Tews
65f1871c98
- update of README file
2009-04-05 18:07:17 +00:00
Uwe.Tews
fa3a23dace
- replaced new array looping syntax {for $foo in $array} with {foreach $foo in $array} to avoid confusion
2009-04-05 17:56:04 +00:00
Uwe.Tews
827e9b08d8
- added append array for short form of assign {$foo[]='bar'} and allow assignments to nested arrays {$foo['bla']['blue']='bar'}
2009-04-05 14:49:27 +00:00
Uwe.Tews
45e2a5f0d6
- make output of template default handlers cachable
2009-04-04 19:07:42 +00:00
Uwe.Tews
228a225f5b
- some fixes on yesterdays update
2009-04-04 15:46:09 +00:00
Uwe.Tews
3c5f0d56d3
- added registerDefaultTemplateHandler methode and functionallity
...
- added registerDefaultPluginHandler methode and functionallity
- added {append} tag to extend Smarty array variabled
2009-04-03 15:59:40 +00:00
Uwe.Tews
b46b973b8e
- added setter/getter methodes
...
- added $foo@first and $foo@last properties at {for} tag
- added $set_timezone (true/false) property to setup optionally the default time zone
2009-04-02 12:24:50 +00:00
Uwe.Tews
25e4ef7fb9
- bugfix smarty.class and internal.security_handler
...
- added compile_check configuration
- added all setter/getter methodes
2009-03-31 14:20:10 +00:00
Uwe.Tews
c9bbd7e834
- added all major setter/getter methodes
2009-03-30 17:05:37 +00:00
Uwe.Tews
590029c092
- code optimization at crc32 hash computation
2009-03-29 13:13:33 +00:00
Uwe.Tews
53e31d8162
- {block} tags can be nested now
2009-03-28 12:20:53 +00:00
Uwe.Tews
7f00b38f34
- md5 hash function replace with crc32 for speed optimization
2009-03-28 09:41:06 +00:00
Uwe.Tews
e180d015ea
- file order for exted resource inverted
...
- clear_compiled_tpl and clear_cache_all will not touch .svn folder any longer
2009-03-28 08:47:26 +00:00
Uwe.Tews
8a8766b0bd
- added extend resource
2009-03-27 15:31:47 +00:00
Uwe.Tews
000e5c7892
- implemented $smarty.block.name.parent to access parent block content
...
- fixed smarty.class
2009-03-26 21:06:02 +00:00
Uwe.Tews
9f95d63ab7
- parser fix
2009-03-26 15:36:01 +00:00
Uwe.Tews
526d5e0388
- fixed parser not to create error on word in double quoted strings
...
- allow PHP array(...)
2009-03-26 14:08:43 +00:00
Uwe.Tews
52652dd4f9
- fixed {foreachelse} and {forelse} tags
2009-03-23 15:29:50 +00:00
Uwe.Tews
c20094c923
- update of paths
2009-03-22 22:36:46 +00:00
Uwe.Tews
a752396d41
- updated paths in development folder
2009-03-22 22:35:10 +00:00
Uwe.Tews
0e2e7efc99
2009-03-22 17:04:35 +00:00
Uwe.Tews
d88ab67260
- delete obsolete files
2009-03-22 17:03:59 +00:00
Uwe.Tews
e06ebee879
- files moved in SVN
2009-03-22 16:59:03 +00:00
monte.ohrt
73f0eae241
fix path
2009-03-22 16:13:14 +00:00
monte.ohrt
dcaa96a9f8
rearrange things into distribution and development directories
2009-03-22 16:09:05 +00:00