mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
singleton 객체를 사용하는 대신에 static method로 변경
This commit is contained in:
parent
623ef0e36b
commit
b524214572
2 changed files with 51 additions and 88 deletions
|
|
@ -369,8 +369,7 @@ class Context
|
|||
// If using rewrite module, initializes router
|
||||
if($this->allow_rewrite)
|
||||
{
|
||||
$oRouter = Router::getInstance();
|
||||
$oRouter->proc();
|
||||
Router::proc();
|
||||
}
|
||||
|
||||
// set locations for javascript use
|
||||
|
|
@ -1575,10 +1574,9 @@ class Context
|
|||
'act.document_srl.key.mid.vid' => ($act == 'trackback') ? "$vid/$mid/$srl/$key/$act" : ''
|
||||
);
|
||||
|
||||
$oRouter = Router::getInstance();
|
||||
$oRouter->setMap($target_map);
|
||||
Router::setMap($target_map);
|
||||
|
||||
$query = $oRouter->makePrettyUrl($target);
|
||||
$query = Router::makePrettyUrl($target);
|
||||
}
|
||||
|
||||
if(!$query)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue