Show
Ignore:
Timestamp:
05/17/08 08:07:52 (8 months ago)
Author:
creorix
Message:

#964

  • useSloganOnPost 설정을 공지도 따르도록 수정
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/piece/blog/entries.php

    r5754 r5958  
    3434    foreach ($entries as $entry) { 
    3535        if ($suri['directive'] == '/notice') 
    36             $permalink = "$blogURL/notice/{$entry['id']}"; 
     36            $permalink = "$blogURL/notice/" . ($blog['useSloganOnPost'] ? URL::encode($entry['slogan'], $service['useEncodedURL']) : $entry['id']); 
    3737        else if ($suri['directive'] == '/page') 
    3838            $permalink = "$blogURL/page/{$entry['id']}"; 
     
    5656            dress('notice_rep_date', fireEvent('ViewNoticeDate', Timestamp::format5($entry['published']), $entry['published']), $entryView); 
    5757            dress('notice_rep_title', htmlspecialchars(fireEvent('ViewNoticeTitle', $entry['title'], $entry['id'])), $entryView); 
    58             if ($suri['directive'] == '/notice') 
    59                 dress('notice_rep_link', "$blogURL/notice/{$entry['id']}", $entryView); 
    60             else 
    61                 dress('notice_rep_link', "$blogURL/page/{$entry['id']}", $entryView); 
     58            dress('notice_rep_link', $permalink, $entryView); 
    6259             
    6360            // 사용자가 작성한 본문은 lib/piece/blog/end.php의 removeAllTags() 다음에 처리하기 위한 조치.