mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-17 10:19:55 +09:00
플래닛모듈의 이전/다음 날짜를 DB를 통해서 글이 존재하는 날짜를 구하도록 코드 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5140 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8175cbc67b
commit
bcd0ec91fb
5 changed files with 47 additions and 6 deletions
|
|
@ -76,8 +76,8 @@
|
|||
$date = Context::get('date');
|
||||
if(!$date || $date > $last_date) $date = $last_date;
|
||||
Context::set('date', $date);
|
||||
Context::set('prev_date', date("Ymd",ztime($date)-60*60*24));
|
||||
Context::set('next_date', date("Ymd",ztime($date)+60*60*24));
|
||||
Context::set('prev_date', $this->planet->getPrevDate($date));
|
||||
Context::set('next_date', $this->planet->getNextDate($date));
|
||||
|
||||
|
||||
// 초기화면에서 tagtab이 나오기 위해 set type 한다
|
||||
|
|
@ -181,8 +181,8 @@
|
|||
$date = Context::get('date');
|
||||
if(!$date || $date > $last_date) $date = $last_date;
|
||||
Context::set('date', $date);
|
||||
Context::set('prev_date', date("Ymd",ztime($date)-60*60*24));
|
||||
Context::set('next_date', date("Ymd",ztime($date)+60*60*24));
|
||||
Context::set('prev_date', $this->planet->getPrevDate($date));
|
||||
Context::set('next_date', $this->planet->getNextDate($date));
|
||||
|
||||
// 최신 업데이트 글 추출
|
||||
$page = Context::get('page');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue