Skip to content

Commit

Permalink
Update CAKE_CORE_INCLUDE_PATH for cli-runner
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed May 28, 2014
1 parent 96c6674 commit 2443a9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Console/cake.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
$dispatcher = 'Cake' . $ds . 'Console' . $ds . 'ShellDispatcher.php';

if (function_exists('ini_set')) {
$root = dirname(dirname(dirname(__FILE__))) . $ds . 'vendor' . $ds . 'pear-pear.cakephp.org';
$root = dirname(dirname(dirname(__FILE__))) . $ds . 'vendor' . $ds . 'cakephp';

// the following line differs from its sibling
// /lib/Cake/Console/Templates/skel/Console/cake.php
ini_set('include_path', $root . $ds . 'CakePHP' . PATH_SEPARATOR . ini_get('include_path'));
ini_set('include_path', $root . $ds . 'cakephp' . $ds . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
}

if (!include $dispatcher) {
Expand Down

0 comments on commit 2443a9b

Please sign in to comment.