mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/twig] Clarify comment
PHPBB3-11598
This commit is contained in:
parent
2674740573
commit
81f0715b8e
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ class phpbb_template_twig_extension extends Twig_Extension
|
||||||
*/
|
*/
|
||||||
function loop_subset(Twig_Environment $env, $item, $start, $end = null, $preserveKeys = false)
|
function loop_subset(Twig_Environment $env, $item, $start, $end = null, $preserveKeys = false)
|
||||||
{
|
{
|
||||||
// We do almost the same thing as array_slice, except when $end is positive
|
// We do almost the same thing as Twig's slice (array_slice), except when $end is positive
|
||||||
if ($end >= 1)
|
if ($end >= 1)
|
||||||
{
|
{
|
||||||
// When end is > 1, subset will end on the last item in an array with the specified $end
|
// When end is > 1, subset will end on the last item in an array with the specified $end
|
||||||
|
|
Loading…
Add table
Reference in a new issue