Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…view class comparison from != to !==
  • Loading branch information...
commit d2420810679ce9fe978442aa03e4bc05904c55e4 1 parent 8d9acd9
@burzum burzum authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Controller/Controller.php
View
4 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');
Please sign in to comment.
Something went wrong with that request. Please try again.