Merge pull request #147 from kijin/pr/fix-145

admin 폴더 방문시 admin 모듈로 전달되지 않는 문제 해결
This commit is contained in:
Kijin Sung 2016-01-22 13:21:08 +09:00
commit 261c353053
2 changed files with 6 additions and 0 deletions

View file

@ -63,6 +63,11 @@ class ModuleHandler extends Handler
{
$this->entry = Context::convertEncodingStr($entry);
}
if(!$this->module && $this->mid === 'admin')
{
Context::set('module', $this->module = 'admin');
Context::set('mid', $this->mid = null);
}
// Validate variables to prevent XSS
$isInvalid = NULL;