mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[feature/twig] context_recursive_loop_builder isn't used anymore, removing it
PHPBB3-11598
This commit is contained in:
parent
c5c34ff831
commit
0ffbdc80d1
1 changed files with 0 additions and 22 deletions
|
@ -137,26 +137,4 @@ class phpbb_template_twig_environment extends Twig_Environment
|
||||||
return parent::loadTemplate($name, $index);
|
return parent::loadTemplate($name, $index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Recursive helper to set variables into $context so that Twig can properly fetch them for display
|
|
||||||
*
|
|
||||||
* @param array $data Data to set at the end of the chain
|
|
||||||
* @param array $blocks Array of blocks to loop into still
|
|
||||||
* @param mixed $current_location Current location in $context (recursive!)
|
|
||||||
* @return null
|
|
||||||
*/
|
|
||||||
public function context_recursive_loop_builder($data, $blocks, &$current_location)
|
|
||||||
{
|
|
||||||
$block = array_shift($blocks);
|
|
||||||
|
|
||||||
if (empty($blocks))
|
|
||||||
{
|
|
||||||
$current_location[$block] = $data;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->context_recursive_loop_builder($data, $blocks, $current_location[$block]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue