Skip to content

Commit e3d3fa6

Browse files
committed
Change for CI 3.0
This simple change let's using this library into Codeigniter 3.0
1 parent 6d17b4c commit e3d3fa6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

third_party/HMVC/Router.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ class HMVC_Router extends CI_Router {
4646
* Runs the route mapping function.
4747
*/
4848
function __construct() {
49-
parent::__construct();
49+
50+
$this->config =& load_class('Config', 'core');
5051

5152
// Process 'modules_locations' from config
5253
$locations = $this->config->item('modules_locations');
@@ -65,6 +66,9 @@ function __construct() {
6566
}
6667

6768
$this->config->set_item('modules_locations', $locations);
69+
70+
71+
parent::__construct();
6872
}
6973

7074
/**
@@ -241,4 +245,4 @@ function set_module($module) {
241245
function fetch_module() {
242246
return $this->module;
243247
}
244-
}
248+
}

0 commit comments

Comments
 (0)