mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11701] Remove useless str_replace
PHPBB3-11701
This commit is contained in:
parent
6b0b0f2a9f
commit
0d31420ae0
1 changed files with 0 additions and 3 deletions
|
@ -191,9 +191,6 @@ class phpbb_template_twig_lexer extends Twig_Lexer
|
||||||
// Recursive...fix any child nodes
|
// Recursive...fix any child nodes
|
||||||
$body = $parent_class->fix_begin_tokens($body, $parent_nodes);
|
$body = $parent_class->fix_begin_tokens($body, $parent_nodes);
|
||||||
|
|
||||||
// Rename loopname vars
|
|
||||||
$body = str_replace($name . '.', $name . '.', $body);
|
|
||||||
|
|
||||||
// Need the parent variable name
|
// Need the parent variable name
|
||||||
array_pop($parent_nodes);
|
array_pop($parent_nodes);
|
||||||
$parent = (!empty($parent_nodes)) ? end($parent_nodes) . '.' : '';
|
$parent = (!empty($parent_nodes)) ? end($parent_nodes) . '.' : '';
|
||||||
|
|
Loading…
Add table
Reference in a new issue