s/new_context/newContext/g
This commit is contained in:
@@ -168,7 +168,7 @@ class Mustache_Compiler
|
|||||||
{
|
{
|
||||||
$this->lambdaHelper = new Mustache_LambdaHelper($this->mustache, $context);
|
$this->lambdaHelper = new Mustache_LambdaHelper($this->mustache, $context);
|
||||||
$buffer = \'\';
|
$buffer = \'\';
|
||||||
$new_context = array();
|
$newContext = array();
|
||||||
%s
|
%s
|
||||||
|
|
||||||
return $buffer;
|
return $buffer;
|
||||||
@@ -183,7 +183,7 @@ class Mustache_Compiler
|
|||||||
public function renderInternal(Mustache_Context $context, $indent = \'\')
|
public function renderInternal(Mustache_Context $context, $indent = \'\')
|
||||||
{
|
{
|
||||||
$buffer = \'\';
|
$buffer = \'\';
|
||||||
$new_context = array();
|
$newContext = array();
|
||||||
%s
|
%s
|
||||||
|
|
||||||
return $buffer;
|
return $buffer;
|
||||||
@@ -252,7 +252,7 @@ class Mustache_Compiler
|
|||||||
const PARENT_ARG = '
|
const PARENT_ARG = '
|
||||||
// %s parent_arg
|
// %s parent_arg
|
||||||
$value = $this->section%s($context, $indent, true);
|
$value = $this->section%s($context, $indent, true);
|
||||||
$new_context[%s] = %s$value;
|
$newContext[%s] = %s$value;
|
||||||
';
|
';
|
||||||
|
|
||||||
private function parentArg($nodes, $id, $start, $end, $otag, $ctag, $level)
|
private function parentArg($nodes, $id, $start, $end, $otag, $ctag, $level)
|
||||||
@@ -400,7 +400,7 @@ class Mustache_Compiler
|
|||||||
const PARENT = '
|
const PARENT = '
|
||||||
|
|
||||||
if ($parent = $this->mustache->LoadPartial(%s)) {
|
if ($parent = $this->mustache->LoadPartial(%s)) {
|
||||||
$context->push($new_context);
|
$context->push($newContext);
|
||||||
$buffer .= $parent->renderInternal($context, $indent);
|
$buffer .= $parent->renderInternal($context, $indent);
|
||||||
$context->pop();
|
$context->pop();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user