mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-13 23:42:13 +09:00
Merge pull request #341 from lansi951/board_use_context
$_GET 변수를 Context::get()으로 대체
This commit is contained in:
commit
e5ba07a616
1 changed files with 4 additions and 3 deletions
|
|
@ -402,10 +402,11 @@ class boardView extends board
|
|||
}
|
||||
|
||||
// set the current page of documents
|
||||
$_get = $_GET;
|
||||
if(!$args->page && ($_GET['document_srl'] || $_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