@@ -33,9 +33,13 @@ class Twig | |||
// add block variables to the global variable bag | |||
public function addBlockVariable($block, $data) | |||
{ | |||
$current = $this->variables[$block]; | |||
$new = array_merge($current, $data); | |||
$this->variables[$block] = $new; | |||
$current = $this->variables[$block]['urls']; | |||
if ($current) { | |||
$new = array_merge($current, $data['urls']); | |||
} else { | |||
$new = $data['urls']; | |||
} | |||
$this->variables[$block]['urls'] = $new; | |||
} | |||
public function render($tmpl, $vars) |