Permalink
Browse files

Fixing typo in Controller::_getViewObject doc block and changing the …

…view class comparison from != to !==
  • Loading branch information...
burzum committed Jan 25, 2013
1 parent 8d9acd9 commit d2420810679ce9fe978442aa03e4bc05904c55e4
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Controller/Controller.php
@@ -1217,13 +1217,13 @@ protected function _scaffoldError($method) {
}
/**
* 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');

0 comments on commit d242081

Please sign in to comment.