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

This reverts commit 9cbad3147b.
This commit is contained in:
bnu 2014-12-11 15:03:21 +09:00
parent cece2c6b4a
commit b62fce5948
2 changed files with 88 additions and 51 deletions

View file

@ -369,7 +369,8 @@ class Context
// If using rewrite module, initializes router
if($this->allow_rewrite)
{
Router::proc();
$oRouter = Router::getInstance();
$oRouter->proc();
}
// set locations for javascript use
@ -1574,9 +1575,10 @@ class Context
'act.document_srl.key.mid.vid' => ($act == 'trackback') ? "$vid/$mid/$srl/$key/$act" : ''
);
Router::setMap($target_map);
$oRouter = Router::getInstance();
$oRouter->setMap($target_map);
$query = Router::makePrettyUrl($target);
$query = $oRouter->makePrettyUrl($target);
}
if(!$query)