projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
fbadd66
)
removed empty if
author
Fabien Potencier
<fabien.potencier@gmail.com>
Tue, 12 Apr 2011 14:04:26 +0000 (16:04 +0200)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Tue, 12 Apr 2011 14:04:26 +0000 (16:04 +0200)
lib/Twig/Error.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Error.php
b/lib/Twig/Error.php
index
88af6f4
..
4064652
100644
(file)
--- a/
lib/Twig/Error.php
+++ b/
lib/Twig/Error.php
@@
-169,8
+169,7
@@
class Twig_Error extends Exception
return array($templateline, $template);
}
- if (T_WHITESPACE === $token[0]) {
- } elseif (T_COMMENT === $token[0] && null === $template && preg_match('#/\* +(.+) +\*/#', $token[1], $match)) {
+ if (T_COMMENT === $token[0] && null === $template && preg_match('#/\* +(.+) +\*/#', $token[1], $match)) {
$template = $match[1];
} elseif (T_COMMENT === $token[0] && preg_match('#^//\s*line (\d+)\s*$#', $token[1], $match)) {
$templateline = $match[1];