mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-18 13:26:37 +00:00
simplified code with finally
This commit is contained in:
@@ -370,12 +370,9 @@ class Twig_Environment
|
||||
$this->setLoader($loader);
|
||||
try {
|
||||
$template = $this->loadTemplate($name);
|
||||
} catch (Exception $e) {
|
||||
} finally {
|
||||
$this->setLoader($current);
|
||||
|
||||
throw $e;
|
||||
}
|
||||
$this->setLoader($current);
|
||||
|
||||
return $template;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user