goFrendiAsgard / No-CMS

No-CMS, A CodeIgniter Based CMS Framework
299 stars 199 forks source link

Sometime HMVC's fetch_module return nothing #88

Closed goFrendiAsgard closed 10 years ago

goFrendiAsgard commented 10 years ago

http://ellislab.com/forums/viewthread/186920/#1001885

goFrendiAsgard commented 10 years ago

Possible solution:

Look at this:

var_dump(__FILE__);
var_dump($this->config->item('modules_locations'));

As modules_locations contains /../something, replace every /../something with ''

Also worth to check :) http://us1.php.net/realpath

goFrendiAsgard commented 10 years ago

Mis-identified, here is the solution: https://github.com/goFrendiAsgard/No-CMS/commit/d92ebe70537b5acee8061b9eae179125db3b104b#diff-66a95843a44de0f5cfefeb7dda5fab67L88