Cleanup extending algorithm

This commit is contained in:
bzick 2016-04-11 20:23:28 +03:00
parent d6aa777fd0
commit 1c73d35681

View File

@ -573,9 +573,6 @@ class Compiler
*/ */
public static function tagBlockOpen(Tokenizer $tokens, Tag $scope) public static function tagBlockOpen(Tokenizer $tokens, Tag $scope)
{ {
if ($scope->level > 0) {
$scope->tpl->_compatible = true;
}
$scope["cname"] = $scope->tpl->parsePlainArg($tokens, $name); $scope["cname"] = $scope->tpl->parsePlainArg($tokens, $name);
if (!$name) { if (!$name) {
throw new \RuntimeException("Invalid block name"); throw new \RuntimeException("Invalid block name");