mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing SessionComponent tests
This commit is contained in:
parent
024bff2126
commit
4a55ef47cf
3 changed files with 4 additions and 3 deletions
|
@ -20,6 +20,8 @@
|
|||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*/
|
||||
|
||||
App::uses('Controller', 'Controller');
|
||||
|
||||
/**
|
||||
* This is a placeholder class.
|
||||
* Create the same file in app/app_controller.php
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*/
|
||||
|
||||
App::uses('Component', 'Controller');
|
||||
App::uses('CakeSession', 'Model/Datasource');
|
||||
|
||||
/**
|
||||
|
|
|
@ -66,9 +66,7 @@ class Object {
|
|||
if (empty($url)) {
|
||||
return false;
|
||||
}
|
||||
if (!class_exists('dispatcher')) {
|
||||
require LIBS . 'dispatcher.php';
|
||||
}
|
||||
App::uses('Dispatcher', 'Routing');
|
||||
if (in_array('return', $extra, true)) {
|
||||
$extra = array_merge($extra, array('return' => 0, 'autoRender' => 1));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue