mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/twig] Spacing
PHPBB3-11598
This commit is contained in:
parent
c1a600277d
commit
2674740573
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ class phpbb_template_twig_extension extends Twig_Extension
|
||||||
{
|
{
|
||||||
// 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
|
||||||
// This is different from slice in that it is the number we end on rather than the number
|
// This is different from slice in that it is the number we end on rather than the number
|
||||||
// of items to grab (length)
|
// of items to grab (length)
|
||||||
|
|
||||||
// Start must always be the actual starting number for this calculation (not negative)
|
// Start must always be the actual starting number for this calculation (not negative)
|
||||||
$start = ($start < 0) ? sizeof($item) + $start : $start;
|
$start = ($start < 0) ? sizeof($item) + $start : $start;
|
||||||
|
|
Loading…
Add table
Reference in a new issue