Changeset 6113

Show
Ignore:
Timestamp:
05/30/08 20:18:44 (6 months ago)
Author:
inureyes
Message:

#881

  • entry에서 제목이 없을 경우에는 일반 블로그 (표지 아닌) 주소로 접속할 수 있도록 함.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/blog/entry.php

    r5986 r6113  
    77    fetchConfigVal(); 
    88} 
    9 // For category view. 
    109 
    11 if(isset($_GET['category'])) { // category exists 
     10if(empty($suri['value'])) { 
     11    list($entries, $paging) = getEntriesWithPaging($blogid, $suri['page'], $blog['entriesOnPage']); 
     12} else if(isset($_GET['category'])) { // category exists 
    1213    if(Validator::isInteger($_GET['category'], 0)) { 
    1314        list($entries, $paging) = getEntryWithPagingBySlogan($blogid, $suri['value'],false,$_GET['category']); 
     
    1617    list($entries, $paging) = getEntryWithPagingBySlogan($blogid, $suri['value']); 
    1718} 
     19 
    1820fireEvent('OBStart'); 
    1921require ROOT . '/lib/piece/blog/begin.php'; 
     
    2224dress('SKIN_head_end', $automaticLink."[##_SKIN_head_end_##]", $view); 
    2325 
    24 if (empty($entries)) { 
     26if (empty($suri['value'])) { 
     27    require ROOT . '/lib/piece/blog/entries.php'; 
     28} else if (empty($entries)) { 
    2529    header('HTTP/1.1 404 Not Found'); 
    2630    if (empty($skin->pageError)) {  
     
    3438    require ROOT . '/lib/piece/blog/entries.php'; 
    3539} 
     40 
     41 
     42 
    3643require ROOT . '/lib/piece/blog/end.php'; 
    3744fireEvent('OBEnd');