Skip to content

Commit

Permalink
Merge branch 'release/v2.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Jones committed Aug 20, 2011
2 parents abccc2f + b8c038a commit d9489e0
Show file tree
Hide file tree
Showing 142 changed files with 387 additions and 348 deletions.
2 changes: 1 addition & 1 deletion application/config/mimes.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

$mimes = array( 'hqx' => 'application/mac-binhex40',
'cpt' => 'application/mac-compactpro',
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel'),
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel'),
'bin' => 'application/macbinary',
'dms' => 'application/octet-stream',
'lha' => 'application/octet-stream',
Expand Down
2 changes: 1 addition & 1 deletion system/core/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* Define the CodeIgniter Version
* ------------------------------------------------------
*/
define('CI_VERSION', '2.0.2');
define('CI_VERSION', '2.0.3');

/*
* ------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion system/core/Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ public function is_ajax_request()
*/
public function is_cli_request()
{
return (bool) defined('STDIN');
return (php_sapi_name() == 'cli') or defined('STDIN');
}

}
Expand Down
15 changes: 15 additions & 0 deletions system/core/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,21 @@ public function vars($vars = array(), $val = '')

// --------------------------------------------------------------------

/**
* Get Variable
*
* Check if a variable is set and retrieve it.
*
* @param array
* @return void
*/
public function get_var($key)
{
return isset($this->_ci_cached_vars[$key]) ? $this->_ci_cached_vars[$key] : NULL;
}

// --------------------------------------------------------------------

/**
* Load Helper
*
Expand Down
2 changes: 1 addition & 1 deletion system/core/URI.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function _fetch_uri_string()
if (strtoupper($this->config->item('uri_protocol')) == 'AUTO')
{
// Is the request coming from the command line?
if (defined('STDIN'))
if (php_sapi_name() == 'cli' or defined('STDIN'))
{
$this->_set_uri_string($this->_parse_cli_args());
return;
Expand Down
Loading

0 comments on commit d9489e0

Please sign in to comment.