singleton 객체를 사용하는 대신에 static method로 변경

This commit is contained in:
SMaker 2014-02-13 12:23:01 +09:00 committed by bnu
parent 623ef0e36b
commit b524214572
2 changed files with 51 additions and 88 deletions

View file

@ -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)