From b316ebee7fc2899ff55cdd25afadfb03594a6ff6 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sun, 27 Oct 2013 10:16:10 -0400 Subject: [PATCH] typo fix. --- framework/yii/base/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/base/View.php b/framework/yii/base/View.php index 57f2fc1..d3db27d 100644 --- a/framework/yii/base/View.php +++ b/framework/yii/base/View.php @@ -262,7 +262,7 @@ class View extends Component Yii::trace("Rendering view file: $viewFile", __METHOD__); $ext = pathinfo($viewFile, PATHINFO_EXTENSION); if (isset($this->renderers[$ext])) { - if (is_array($this->renderers[$ext]) || is_string($this->renders[$ext])) { + if (is_array($this->renderers[$ext]) || is_string($this->renderers[$ext])) { $this->renderers[$ext] = Yii::createObject($this->renderers[$ext]); } /** @var ViewRenderer $renderer */