Remove unused internal compiler arg.
We stopped passing it in 11ad87ae but missed the cleanup.
This commit is contained in:
@@ -365,11 +365,10 @@ class Mustache_Compiler
|
|||||||
* @param string $otag Current Mustache opening tag
|
* @param string $otag Current Mustache opening tag
|
||||||
* @param string $ctag Current Mustache closing tag
|
* @param string $ctag Current Mustache closing tag
|
||||||
* @param int $level
|
* @param int $level
|
||||||
* @param bool $arg (default: false)
|
|
||||||
*
|
*
|
||||||
* @return string Generated section PHP source code
|
* @return string Generated section PHP source code
|
||||||
*/
|
*/
|
||||||
private function section($nodes, $id, $filters, $start, $end, $otag, $ctag, $level, $arg = false)
|
private function section($nodes, $id, $filters, $start, $end, $otag, $ctag, $level)
|
||||||
{
|
{
|
||||||
$source = var_export(substr($this->source, $start, $end - $start), true);
|
$source = var_export(substr($this->source, $start, $end - $start), true);
|
||||||
$callable = $this->getCallable();
|
$callable = $this->getCallable();
|
||||||
@@ -389,16 +388,12 @@ class Mustache_Compiler
|
|||||||
$this->sections[$key] = sprintf($this->prepare(self::SECTION), $key, $callable, $source, $helper, $delims, $this->walk($nodes, 2));
|
$this->sections[$key] = sprintf($this->prepare(self::SECTION), $key, $callable, $source, $helper, $delims, $this->walk($nodes, 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($arg === true) {
|
|
||||||
return $key;
|
|
||||||
} else {
|
|
||||||
$method = $this->getFindMethod($id);
|
$method = $this->getFindMethod($id);
|
||||||
$id = var_export($id, true);
|
$id = var_export($id, true);
|
||||||
$filters = $this->getFilters($filters, $level);
|
$filters = $this->getFilters($filters, $level);
|
||||||
|
|
||||||
return sprintf($this->prepare(self::SECTION_CALL, $level), $id, $method, $id, $filters, $key);
|
return sprintf($this->prepare(self::SECTION_CALL, $level), $id, $method, $id, $filters, $key);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
const INVERTED_SECTION = '
|
const INVERTED_SECTION = '
|
||||||
// %s inverted section
|
// %s inverted section
|
||||||
|
|||||||
Reference in New Issue
Block a user