Changeset 6396

Show
Ignore:
Timestamp:
07/07/08 14:17:52 (6 months ago)
Author:
inureyes
Message:

#1045

  • 과거 글이라 슬로건이 없는 경우에는 title 정보를 참조하여 링크를 만들도록 함.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/library/view/view.php

    r6395 r6396  
    959959            $itemView = $noticeItemView; 
    960960            dress('notice_rep_title', htmlspecialchars(fireEvent('ViewNoticeTitle', UTF8::lessenAsEm($notice['title'], $skinSetting['recentNoticeLength']), $notice['id'])), $itemView); 
    961             dress('notice_rep_link', "$blogURL/notice/".($blog['useSloganOnPost'] ? URL::encode($notice['slogan'], $itemView) : $notice['id']), $itemView); 
     961            if($blog['useSloganOnPost']) { 
     962                if(isset($notice['slogan'])&& !empty($notice['slogan'])) { 
     963                    $noticeURL = URL::encode($notice['slogan']); 
     964                } else { 
     965                    $noticeURL = URL::encode($notice['title']); 
     966                } 
     967            } else { 
     968                $noticeURL = $notice['id']; 
     969            } 
     970             
     971            dress('notice_rep_link', "$blogURL/notice/$noticeURL", $itemView); 
    962972            $itemsView .= $itemView; 
    963973        }