Changeset 1449

Show
Ignore:
Timestamp:
09/18/06 16:05:58 (2 years ago)
Author:
crizin
Message:

sync permalink에 slogan 사용가능하도록 수정

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/blog/sync/item.php

    r1448 r1449  
    77if ($result && ($row = mysql_fetch_array($result))) { 
    88    $author = fetchQueryCell("SELECT name FROM {$database['prefix']}Users WHERE userid = $owner"); 
    9     $item = array('title' => $row['title'], 'description' => $row['content'], 'link' => "$defaultURL/{$row['id']}", 'categories' => array(), 'location' => $row['location'], 'pubDate' => Timestamp::getRFC1123GMT($row['published'])); 
     9    $item = array('title' => $row['title'], 'description' => $row['content'], 'link' => "$defaultURL/".($blog['useSlogan'] ? "entry/{$row['slogan']}": $row['id']), 'categories' => array(), 'location' => $row['location'], 'pubDate' => Timestamp::getRFC1123GMT($row['published'])); 
    1010    array_push($item['categories'], $row['categoryName']); 
    1111    $tag_result = mysql_query("select name from {$database['prefix']}Tags, {$database['prefix']}TagRelations where id = tag and owner = $owner and entry = {$row['id']} order by name");