mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 02:46:29 +00:00
simplified previous merge
This commit is contained in:
+1
-3
@@ -175,9 +175,7 @@ class Twig_Error extends Exception
|
||||
$tokens = token_get_all(file_get_contents($r->getFilename()));
|
||||
$templateline = -1;
|
||||
$template = null;
|
||||
for ($j = 0, $tokensSize = count($tokens); $j < $tokensSize; $j++) {
|
||||
$token = $tokens[$j];
|
||||
|
||||
foreach ($tokens as $token) {
|
||||
if (isset($token[2]) && $token[2] >= $line) {
|
||||
return array($templateline, $template);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user