contents -> content

This commit is contained in:
Ryan Weaver
2018-01-03 15:09:52 -05:00
parent cd06d3c696
commit 19e3fb8c1a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -383,7 +383,7 @@ class Twig_Parser implements Twig_ParserInterface
throw new Twig_Error_Syntax('A template that extends another one cannot start with a byte order mark (BOM); it must be removed.', $node->getTemplateLine(), $this->stream->getSourceContext());
}
throw new Twig_Error_Syntax('A template that extends another one cannot include contents outside Twig blocks. Did you forget to put the contents inside a {% block %} tag?', $node->getTemplateLine(), $this->stream->getSourceContext());
throw new Twig_Error_Syntax('A template that extends another one cannot include content outside Twig blocks. Did you forget to put the content inside a {% block %} tag?', $node->getTemplateLine(), $this->stream->getSourceContext());
}
// bypass nodes that will "capture" the output
@@ -1,5 +1,5 @@
--TEST--
Exception for child templates defining contents outside blocks defined by parent
Exception for child templates defining content outside blocks defined by parent
--TEMPLATE--
{% extends 'base.twig' %}
@@ -12,4 +12,4 @@ Content outside a block.
{% block sidebar %}
{% endblock %}
--EXCEPTION--
Twig_Error_Syntax: A template that extends another one cannot include contents outside Twig blocks. Did you forget to put the contents inside a {% block %} tag in "index.twig" at line 3?
Twig_Error_Syntax: A template that extends another one cannot include content outside Twig blocks. Did you forget to put the content inside a {% block %} tag in "index.twig" at line 3?