Skip to content

Commit

Permalink
tests: fixed compatibility with new Latte
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Nov 24, 2015
1 parent 973ce77 commit 1a6bbef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// block _outer1
//
if (!function_exists($_b->blocks['_outer1'][] = '_%[a-z0-9]+%__outer1')) { function _%[a-z0-9]+%__outer1($_b, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v; $_control->redrawControl('outer1', FALSE)
;$iterations = 0; foreach (array(1,2,3) as $id) { ?>
;%a% foreach (array(1,2,3) as $id) { ?>
<div<?php echo ' id="' . ($_l->dynSnippetId = $_control->getSnippetId("inner-$id")) . '"' ?>>
<?php ob_start() ?> #<?php echo Latte\Runtime\Filters::escapeHtml($id, ENT_NOQUOTES) ?>

Expand All @@ -19,7 +19,7 @@ if (!function_exists($_b->blocks['_outer1'][] = '_%[a-z0-9]+%__outer1')) { funct
// block _outer2
//
if (!function_exists($_b->blocks['_outer2'][] = '_%[a-z0-9]+%__outer2')) { function _%[a-z0-9]+%__outer2($_b, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v; $_control->redrawControl('outer2', FALSE)
;$iterations = 0; foreach (array(1,2,3) as $id) { ?>
;%a% foreach (array(1,2,3) as $id) { ?>
<div<?php echo ' id="' . ($_l->dynSnippetId = $_control->getSnippetId("inner-$id")) . '"' ?>>
<?php ob_start() ?> #<?php echo Latte\Runtime\Filters::escapeHtml($id, ENT_NOQUOTES) ?>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// block _outer
//
if (!function_exists($_b->blocks['_outer'][] = '_%[a-z0-9]+%__outer')) { function _%[a-z0-9]+%__outer($_b, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v; $_control->redrawControl('outer', FALSE)
;$iterations = 0; foreach (array(1,2,3) as $id) { ?>
;%a% foreach (array(1,2,3) as $id) { ?>
<div id="<?php echo $_l->dynSnippetId = $_control->getSnippetId("inner-$id") ?>
"><?php ob_start() ?>

Expand Down

0 comments on commit 1a6bbef

Please sign in to comment.