From 01d1a5b936556f3b19786b7407cce11cf3bdb616 Mon Sep 17 00:00:00 2001 From: Phil Sturgeon Date: Mon, 7 Feb 2011 10:54:06 +0000 Subject: CLI requests can now be run from any folder, not just when CD'ed next to index.php. --- index.php | 7 +++++++ user_guide/changelog.html | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/index.php b/index.php index 918c80259..74e3ba32a 100644 --- a/index.php +++ b/index.php @@ -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).'/'; diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 35187efda..09a2cefce 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -59,6 +59,15 @@ Change Log

The Reactor Marker indicates items that were contributed to CodeIgniter via CodeIgniter Reactor.

+

Version 2.0.1

+

Release Date: n/a
+Hg Tag: n/a

+ +

Bug fixes for 2.0.1

+ +

Version 2.0.0

Release Date: January 28, 2011
Hg Tag: v2.0.0

-- cgit v1.2.3-24-g4f1b