Skip to content

Commit

Permalink
Partial templates are allowed to contain hyphens
Browse files Browse the repository at this point in the history
  • Loading branch information
kolber committed Dec 15, 2009
1 parent 2987ea4 commit 84a2cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/parsers/template-parser.inc.php
Expand Up @@ -103,7 +103,7 @@ static function parse_includes($data, $template) {
###### TODO: There is no protection against endless loops due to circular inclusions

# split out the partial into the parts Before, Inside, and After the :include
preg_match('/([\S\s]*?)\s:([\w\d_]+?)(\.html)?\b([\S\s]*)$/', $template, $template_parts);
preg_match('/([\S\s]*?)\s:([\w\d_-]+?)(\.html)?\s([\S\s]*)$/', $template, $template_parts);
# run the replacements on the pre-":include" part of the partial
$template = self::parse($data, $template_parts[1]);

Expand Down

0 comments on commit 84a2cd9

Please sign in to comment.