mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixing + adding imports for Scaffold.
This commit is contained in:
parent
58d62cb369
commit
5d703c4f50
3 changed files with 5 additions and 5 deletions
|
@ -462,9 +462,7 @@ class Scaffold {
|
|||
* @package cake
|
||||
* @subpackage cake.cake.libs.controller
|
||||
*/
|
||||
if (!class_exists('ThemeView')) {
|
||||
App::import('View', 'Theme');
|
||||
}
|
||||
|
||||
/**
|
||||
* ScaffoldView provides specific view file loading features for scaffolded views.
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
* @since CakePHP(tm) v 0.10.0.1076
|
||||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*/
|
||||
App::import('View', 'View');
|
||||
|
||||
/**
|
||||
* Theme view class
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
* @since CakePHP(tm) v 1.2.0.5436
|
||||
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
||||
*/
|
||||
App::import('Core', 'Scaffold');
|
||||
App::import('Core', 'Scaffold', false);
|
||||
App::import('Core', 'Controller', false);
|
||||
|
||||
/**
|
||||
* ScaffoldMockController class
|
||||
|
@ -789,7 +790,7 @@ class ScaffoldTest extends CakeTestCase {
|
|||
$this->Controller->theme = 'test_theme';
|
||||
$this->Controller->view = 'Theme';
|
||||
$this->Controller->constructClasses();
|
||||
$Scaffold =& new TestScaffoldMock($this->Controller, array());
|
||||
$Scaffold =& new TestScaffoldMock($this->Controller, $this->Controller->request);
|
||||
|
||||
$this->assertEqual($this->Controller->view, 'Scaffold');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue