aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-07-05 13:15:10 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2013-07-05 13:15:10 -0500
commit0ffbdc80d1eafdcbdc6e2aa4c82fa7e081c0a502 (patch)
tree4a143b047c3f83e56f5e65006ab99504510ac72a /phpBB
parentc5c34ff831faf96368d34012dc65bdb9451227aa (diff)
downloadforums-0ffbdc80d1eafdcbdc6e2aa4c82fa7e081c0a502.tar
forums-0ffbdc80d1eafdcbdc6e2aa4c82fa7e081c0a502.tar.gz
forums-0ffbdc80d1eafdcbdc6e2aa4c82fa7e081c0a502.tar.bz2
forums-0ffbdc80d1eafdcbdc6e2aa4c82fa7e081c0a502.tar.xz
forums-0ffbdc80d1eafdcbdc6e2aa4c82fa7e081c0a502.zip
[feature/twig] context_recursive_loop_builder isn't used anymore, removing it
PHPBB3-11598
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/template/twig/environment.php22
1 files changed, 0 insertions, 22 deletions
diff --git a/phpBB/includes/template/twig/environment.php b/phpBB/includes/template/twig/environment.php
index acb97cfad2..b60cd72325 100644
--- a/phpBB/includes/template/twig/environment.php
+++ b/phpBB/includes/template/twig/environment.php
@@ -137,26 +137,4 @@ class phpbb_template_twig_environment extends Twig_Environment
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]);
- }
- }
}