This PR was merged into the master branch.
Discussion
----------
Fixed small typo in link for "pre-built DLL"
Hey!
Very easy - this fixes a link that wasn't generating correctly.
Thanks!
Commits
-------
28673b1 Fixed small typo in link for "pre-built DLL"
This PR was merged into the master branch.
Discussion
----------
Fixed : fatal error when using defined test on an invalid expression
Commits
-------
e285228 Fixed : fatal error when using defined test on an invalid expression
This PR was squashed before being merged into the master branch (closes#1053).
Discussion
----------
Prevent extensions from clobbering all globals.
It's possible for a poorly written extension to destroy all global variables by returning nothing. This prevents that and throws an E_WARNING to notify the developer.
Commits
-------
7c8acf7 Prevent extensions from clobbering all globals.
This PR was merged into the master branch.
Discussion
----------
Update json_encode.rst
a more-useful description of the "options" argument >_>
Commits
-------
742043f Update json_encode.rst
This PR was squashed before being merged into the master branch (closes#1042).
Discussion
----------
Registration a Twig_SimpleFunction after extensions initialized throw not LogicException, but Fatal Error
Registration a Twig_SimpleFunction after extensions initialized throw not LogicException, but Fatal Error:
$environment->addFunction(new Twig_SimpleFunction(...))
after
$environment->render(...)
throws Fatal Error:
object of Twig_SimpleFunction could not be converted to string
Commits
-------
92e97b9 Registration a Twig_SimpleFunction after extensions initialized throw not LogicException, but Fatal Error
This PR was merged into the master branch.
Discussion
----------
Adding a section about the slice filter to doc/tags/for.rst
This code example shows how to loop over a subset of values in order to implement one common use-case of "break" in PHP. I decided to use the "full" notation of slice rather than the sugared version (that example would just be "for user in users[:10]")
Commits
-------
202641a Adding link to slice filter per Stof's suggestion
8ebbaaa Adding a section about the slice filter
This PR was merged into the master branch.
Discussion
----------
Minor typo in sort filter documentation
I've found this small typo while working on shuffle filter documentation in https://github.com/fabpot/Twig/pull/1038
I decided to create separate PR in case https://github.com/fabpot/Twig/pull/1038 got rejected
Best regards!
Commits
-------
1443b76 minor typo in sort documentation
This PR was merged into the master branch.
Discussion
----------
Fix filename for batch filter documentation
The documentation on the website for the batch filter currently 404s See: http://twig.sensiolabs.org/doc/filters/batch.html
I believe this is because the filename is incorrect. This PR fixes that.
Commits
-------
bb05942 Fix filename for batch filter documentation
This PR was merged into the master branch.
Discussion
----------
Revert "merged branch pierrejoye/master (PR #855)"
This reverts commit 347bc81d6e
This commit make compilation failed for PHP5.2 with thread-safe enabled (see https://travis-ci.org/fabpot/Twig/jobs/5523865)
Commits
-------
4383388 Revert "merged branch pierrejoye/master (PR #855)"
This PR was merged into the master branch.
Commits
-------
c6ef23a Update striptags.rst
Discussion
----------
Update striptags.rst
Hello
I just changed
{% some_html|striptags %}
to
{{ some_html|striptags }}
Regards
Julien
This code example shows how to loop over a subset of values in order to implement one common use-case of "break" in PHP. I decided to use the "full" notation of slice rather than the sugared version (that example would just be "for user in users[:10]")
This PR was merged into the master branch.
Commits
-------
59d0eed Update merge.rst
Discussion
----------
Update merge.rst
Typo in first line:
The merge filter merges an array with [removed: the] another array
This PR was merged into the master branch.
Commits
-------
c82308a deprecated use, -4 files to include.
Discussion
----------
Depraceted use of Twig_Filter_Function in Core Extension
Simple fix, that reduces included files count by 4 (in default configuration).