Skip to content

Commit

Permalink
Pass CI_Config as a parameter to CI_URI constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
narfbg committed Feb 15, 2016
1 parent 2426635 commit 2a34081
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion system/core/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
* Instantiate the URI class
* ------------------------------------------------------
*/
$URI =& load_class('URI', 'core');
$URI =& load_class('URI', 'core', $CFG);

/*
* ------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions system/core/URI.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ class CI_URI {
*
* @return void
*/
public function __construct()
public function __construct(CI_Config &$config)
{
$this->config =& load_class('Config', 'core');
$this->config = $config;

// If it's a CLI request, ignore the configuration
if (is_cli())
Expand Down

0 comments on commit 2a34081

Please sign in to comment.