Skip to content

Commit

Permalink
Fixing SessionComponent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jan 28, 2011
1 parent 024bff2 commit 4a55ef4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/Cake/Controller/AppController.php
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Controller/Component/SessionComponent.php
Expand Up @@ -17,6 +17,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

App::uses('Component', 'Controller');
App::uses('CakeSession', 'Model/Datasource');

/**
Expand Down
4 changes: 1 addition & 3 deletions lib/Cake/Core/Object.php
Expand Up @@ -66,9 +66,7 @@ public function requestAction($url, $extra = array()) {
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));
}
Expand Down

0 comments on commit 4a55ef4

Please sign in to comment.