diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-02-07 11:54:44 +0100 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-02-07 11:54:44 +0100 |
commit | 287763b919d2f1522cf4e6e39c0d33a957ff0538 (patch) | |
tree | dc7fdf1e16f5952557e6084b470077730a0a179e /index.php | |
parent | 58e8caf2afb3ea054f83999fb0698720a1a58738 (diff) | |
parent | 01d1a5b936556f3b19786b7407cce11cf3bdb616 (diff) |
Automated merge with http://hg.ellislab.com/CodeIgniter-Reactor
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -130,6 +130,13 @@ * Resolve the system path for increased reliability * --------------------------------------------------------------- */ + + // Set the current directory correctly for CLI requests + if (defined('STDIN')) + { + chdir(dirname(__FILE__)); + } + if (realpath($system_path) !== FALSE) { $system_path = realpath($system_path).'/'; |