Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
also bring template one in sync.
  • Loading branch information
euromark committed Jun 17, 2014
1 parent a9de83d commit 6161aae
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/Cake/Console/Templates/skel/Console/cake.php
Expand Up @@ -16,20 +16,24 @@
* @since CakePHP(tm) v 2.0
*/

$ds = DIRECTORY_SEPARATOR;
$dispatcher = 'Cake' . $ds . 'Console' . $ds . 'ShellDispatcher.php';
if (!defined('DS')) {
define('DS', DIRECTORY_SEPARATOR);
}

$dispatcher = 'Cake' . DS . 'Console' . DS . 'ShellDispatcher.php';

if (function_exists('ini_set')) {
$root = dirname(dirname(dirname(__FILE__)));

// the following line differs from its sibling
// /app/Console/cake.php
ini_set('include_path', $root . PATH_SEPARATOR . __CAKE_PATH__ . PATH_SEPARATOR . ini_get('include_path'));
unset($root);
}

if (!include $dispatcher) {
trigger_error('Could not locate CakePHP core files.', E_USER_ERROR);
}
unset($paths, $path, $dispatcher, $root, $ds);
unset($dispatcher);

return ShellDispatcher::run($argv);

0 comments on commit 6161aae

Please sign in to comment.