mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-30 00:47:12 +00:00
simplified some code
This commit is contained in:
+1
-3
@@ -454,12 +454,10 @@ class Environment
|
||||
|
||||
$this->setLoader($loader);
|
||||
try {
|
||||
$template = $this->loadTemplate($name);
|
||||
return $this->loadTemplate($name);
|
||||
} finally {
|
||||
$this->setLoader($current);
|
||||
}
|
||||
|
||||
return $template;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user