mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
static method를 한번만 호출
Context::get()을 한번만 호출.
This commit is contained in:
parent
abe2026f98
commit
09eff02685
1 changed files with 4 additions and 2 deletions
|
|
@ -402,9 +402,11 @@ class boardView extends board
|
|||
}
|
||||
|
||||
// set the current page of documents
|
||||
if(!$args->page && (Context::get('document_srl') || Context::get('entry')))
|
||||
$document_srl = Context::get('document_srl');
|
||||
$entry = Context::get('entry');
|
||||
if(!$args->page && ($document_srl || $entry))
|
||||
{
|
||||
$oDocument = $oDocumentModel->getDocument(Context::get('document_srl'));
|
||||
$oDocument = $oDocumentModel->getDocument($document_srl);
|
||||
if($oDocument->isExists() && !$oDocument->isNotice())
|
||||
{
|
||||
$page = $oDocumentModel->getDocumentPage($oDocument, $args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue