mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
#930 modify Router class call position
This commit is contained in:
parent
0e8d6c47e1
commit
21bd343048
1 changed files with 9 additions and 9 deletions
|
|
@ -242,9 +242,18 @@ class Context
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check if using rewrite module
|
||||||
|
$this->allow_rewrite = ($this->db_info->use_rewrite == 'Y' ? TRUE : FALSE);
|
||||||
|
|
||||||
// If XE is installed, get virtual site information
|
// If XE is installed, get virtual site information
|
||||||
if(self::isInstalled())
|
if(self::isInstalled())
|
||||||
{
|
{
|
||||||
|
// If using rewrite module, initializes router
|
||||||
|
if($this->allow_rewrite)
|
||||||
|
{
|
||||||
|
Router::proc();
|
||||||
|
}
|
||||||
|
|
||||||
$oModuleModel = getModel('module');
|
$oModuleModel = getModel('module');
|
||||||
$site_module_info = $oModuleModel->getDefaultMid();
|
$site_module_info = $oModuleModel->getDefaultMid();
|
||||||
|
|
||||||
|
|
@ -365,15 +374,6 @@ class Context
|
||||||
$this->lang = &$GLOBALS['lang'];
|
$this->lang = &$GLOBALS['lang'];
|
||||||
$this->loadLang(_XE_PATH_ . 'common/lang/');
|
$this->loadLang(_XE_PATH_ . 'common/lang/');
|
||||||
|
|
||||||
// check if using rewrite module
|
|
||||||
$this->allow_rewrite = ($this->db_info->use_rewrite == 'Y' ? TRUE : FALSE);
|
|
||||||
|
|
||||||
// If using rewrite module, initializes router
|
|
||||||
if($this->allow_rewrite)
|
|
||||||
{
|
|
||||||
Router::proc();
|
|
||||||
}
|
|
||||||
|
|
||||||
// set locations for javascript use
|
// set locations for javascript use
|
||||||
if($_SERVER['REQUEST_METHOD'] == 'GET')
|
if($_SERVER['REQUEST_METHOD'] == 'GET')
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue