From 25c9df53542a409fb9c17022f94b69ccf5c80091 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 25 Oct 2011 13:59:24 +0200 Subject: [PATCH] fixed typos --- lib/Twig/Environment.php | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Twig/Environment.php b/lib/Twig/Environment.php index 8061ee6..c3cdf28 100644 --- a/lib/Twig/Environment.php +++ b/lib/Twig/Environment.php @@ -658,7 +658,7 @@ class Twig_Environment */ public function addTokenParser(Twig_TokenParserInterface $parser) { - $this->stating['token_parsers'][] = $parser; + $this->staging['token_parsers'][] = $parser; } /** @@ -671,8 +671,8 @@ class Twig_Environment if (null === $this->parsers) { $this->parsers = new Twig_TokenParserBroker(); - if (isset($this->stating['token_parsers'])) { - foreach ($this->stating['token_parsers'] as $parser) { + if (isset($this->staging['token_parsers'])) { + foreach ($this->staging['token_parsers'] as $parser) { $this->parsers->addTokenParser($parser); } } @@ -701,7 +701,7 @@ class Twig_Environment */ public function addNodeVisitor(Twig_NodeVisitorInterface $visitor) { - $this->stating['visitors'][] = $visitor; + $this->staging['visitors'][] = $visitor; } /** @@ -712,7 +712,7 @@ class Twig_Environment public function getNodeVisitors() { if (null === $this->visitors) { - $this->visitors = isset($this->stating['visitors']) ? $this->stating['visitors'] : array(); + $this->visitors = isset($this->staging['visitors']) ? $this->staging['visitors'] : array(); foreach ($this->getExtensions() as $extension) { $this->visitors = array_merge($this->visitors, $extension->getNodeVisitors()); } -- 1.7.2.5