{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii/issues/4027","repository_url":"https://api.github.com/repos/yiisoft/yii","labels_url":"https://api.github.com/repos/yiisoft/yii/issues/4027/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii/issues/4027/comments","events_url":"https://api.github.com/repos/yiisoft/yii/issues/4027/events","html_url":"https://github.com/yiisoft/yii/issues/4027","id":141671548,"number":4027,"title":"Invalid path of alias on CModule::setModules() introduced 1.1.16","user":{"login":"tonybolzan","id":1386782,"avatar_url":"https://avatars3.githubusercontent.com/u/1386782?v=3","gravatar_id":"","url":"https://api.github.com/users/tonybolzan","html_url":"https://github.com/tonybolzan","followers_url":"https://api.github.com/users/tonybolzan/followers","following_url":"https://api.github.com/users/tonybolzan/following{/other_user}","gists_url":"https://api.github.com/users/tonybolzan/gists{/gist_id}","starred_url":"https://api.github.com/users/tonybolzan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonybolzan/subscriptions","organizations_url":"https://api.github.com/users/tonybolzan/orgs","repos_url":"https://api.github.com/users/tonybolzan/repos","events_url":"https://api.github.com/users/tonybolzan/events{/privacy}","received_events_url":"https://api.github.com/users/tonybolzan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/yiisoft/yii/milestones/10","html_url":"https://github.com/yiisoft/yii/milestone/10","labels_url":"https://api.github.com/repos/yiisoft/yii/milestones/10/labels","id":911632,"number":10,"title":"1.1.18","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars3.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":58,"state":"open","created_at":"2014-12-21T21:27:21Z","updated_at":"2017-04-18T12:53:28Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-03-17T18:37:16Z","updated_at":"2017-04-18T12:53:28Z","closed_at":"2017-04-18T12:53:28Z","body":"If you have a submodule with same name as another module, getPathOfAlias() loads a wrong module.\nExample:\nI have 3 modules:\n\n``` php\n'modules' => array(\n    'A',\n    'B' => array(\n        'modules' => array(\n            'A', // This module is never loaded\n        ),\n    ),\n),\n```\n\n[CModule::setModules()](https://github.com/yiisoft/yii/blob/master/framework/base/CModule.php#L356)\nIn module `B`,  when module `B->A` is loaded,  `$id` = `A` is passed to `getPathOfAlias` making Yii load first module called `A`\n"}}
{"actor":{"display_login":"samdark"}}