Skip to content

Commit d9489e0

Browse files
author
Derek Jones
committed
Merge branch 'release/v2.0.3'
2 parents abccc2f + b8c038a commit d9489e0

File tree

142 files changed

+387
-348
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+387
-348
lines changed

application/config/mimes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
$mimes = array( 'hqx' => 'application/mac-binhex40',
1212
'cpt' => 'application/mac-compactpro',
13-
'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'),
13+
'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'),
1414
'bin' => 'application/macbinary',
1515
'dms' => 'application/octet-stream',
1616
'lha' => 'application/octet-stream',

system/core/CodeIgniter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* Define the CodeIgniter Version
3333
* ------------------------------------------------------
3434
*/
35-
define('CI_VERSION', '2.0.2');
35+
define('CI_VERSION', '2.0.3');
3636

3737
/*
3838
* ------------------------------------------------------

system/core/Input.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ public function is_ajax_request()
672672
*/
673673
public function is_cli_request()
674674
{
675-
return (bool) defined('STDIN');
675+
return (php_sapi_name() == 'cli') or defined('STDIN');
676676
}
677677

678678
}

system/core/Loader.php

+15
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,21 @@ public function vars($vars = array(), $val = '')
388388

389389
// --------------------------------------------------------------------
390390

391+
/**
392+
* Get Variable
393+
*
394+
* Check if a variable is set and retrieve it.
395+
*
396+
* @param array
397+
* @return void
398+
*/
399+
public function get_var($key)
400+
{
401+
return isset($this->_ci_cached_vars[$key]) ? $this->_ci_cached_vars[$key] : NULL;
402+
}
403+
404+
// --------------------------------------------------------------------
405+
391406
/**
392407
* Load Helper
393408
*

system/core/URI.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function _fetch_uri_string()
6262
if (strtoupper($this->config->item('uri_protocol')) == 'AUTO')
6363
{
6464
// Is the request coming from the command line?
65-
if (defined('STDIN'))
65+
if (php_sapi_name() == 'cli' or defined('STDIN'))
6666
{
6767
$this->_set_uri_string($this->_parse_cli_args());
6868
return;

0 commit comments

Comments
 (0)