浏览代码

Fixing typo in Controller::_getViewObject doc block and changing the view class comparison from != to !==

Florian Krämer 13 年之前
父节点
当前提交
d242081067
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/Cake/Controller/Controller.php

+ 2 - 2
lib/Cake/Controller/Controller.php

@@ -1217,13 +1217,13 @@ class Controller extends Object implements CakeEventListener {
 	}
 
 /**
- * Constructs the view class based on the controllers properties
+ * Constructs the view class based on the controller properties
  *
  * @return View
  */
 	protected function _getViewObject() {
 		$viewClass = $this->viewClass;
-		if ($this->viewClass != 'View') {
+		if ($this->viewClass !== 'View') {
 			list($plugin, $viewClass) = pluginSplit($viewClass, true);
 			$viewClass = $viewClass . 'View';
 			App::uses($viewClass, $plugin . 'View');