mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing typo in Controller::_getViewObject doc block and changing the view class comparison from != to !==
This commit is contained in:
parent
8d9acd9a8a
commit
d242081067
1 changed files with 2 additions and 2 deletions
|
@ -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
|
* @return View
|
||||||
*/
|
*/
|
||||||
protected function _getViewObject() {
|
protected function _getViewObject() {
|
||||||
$viewClass = $this->viewClass;
|
$viewClass = $this->viewClass;
|
||||||
if ($this->viewClass != 'View') {
|
if ($this->viewClass !== 'View') {
|
||||||
list($plugin, $viewClass) = pluginSplit($viewClass, true);
|
list($plugin, $viewClass) = pluginSplit($viewClass, true);
|
||||||
$viewClass = $viewClass . 'View';
|
$viewClass = $viewClass . 'View';
|
||||||
App::uses($viewClass, $plugin . 'View');
|
App::uses($viewClass, $plugin . 'View');
|
||||||
|
|
Loading…
Reference in a new issue