Changeset 7648 for trunk

Show
Ignore:
Timestamp:
06/21/09 09:02:57 (15 months ago)
Author:
graphittie
Message:

refs #1283

  • [7643] revert.
  • RSS의 포스트 타이틀에 추가한 ViewPostTitle은 남겨놓았습니다.
Location:
trunk/library
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/library/model/blog.feed.php

    r7643 r7648  
    102102        $entryURL = $defaultURL . '/' . ($blog['useSloganOnPost'] ? 'entry/' . rawurlencode($row['slogan']) : $row['id']); 
    103103 
    104         $content = getEntryContentView($row['blogid'], $row['id'], $row['content'], $row['contentFormatter'], true, 'Post', true, 'rss'); 
     104        $content = getEntryContentView($row['blogid'], $row['id'], $row['content'], $row['contentFormatter'], true, 'Post', true, true); 
    105105        $content = preg_replace('/<a href=("|\')(#[^\1]+)\1/i', '<a href=$1' . htmlspecialchars($entryURL) . '$2$1', $content); 
    106106        if (!$blog['publishWholeOnRSS']) { 
     
    110110        $item = array( 
    111111            'id' => $row['id'],  
    112             'title' => RSSMessage(fireEvent('ViewPostTitle', $row['title'], $row['id'], 'rss')),  
     112            'title' => RSSMessage(fireEvent('ViewPostTitle', $row['title'], $row['id'])),  
    113113            'link' => $entryURL,  
    114114            'categories' => array(), 'description' => RSSMessage($content),  
  • trunk/library/model/blog.response.remote.php

    r7643 r7648  
    339339        return false; 
    340340    $link = "$defaultURL/$entryId"; 
    341     $title = fireEvent('ViewPostTitle', $entry['title'], $entry['id'], 'trackback'); 
    342     $entry['content'] = getEntryContentView($blogid, $entryId, $entry['content'], $entry['contentFormatter'], getKeywordNames($blogid), 'Post', false, 'trackback'); 
     341    $title = fireEvent('ViewPostTitle', $entry['title'], $entry['id']); 
     342    $entry['content'] = getEntryContentView($blogid, $entryId, $entry['content'], $entry['contentFormatter'], getKeywordNames($blogid)); 
    343343    $excerpt = str_tag_on(UTF8::lessen(removeAllTags(stripHTML($entry['content'])), 255)); 
    344344    $blogTitle = $blog['title']; 
  • trunk/library/model/common.plugin.php

    r7643 r7648  
    310310            $pluginURL = "{$service['path']}/plugins/{$mapping['plugin']}"; 
    311311            $pluginPath = ROOT . "/plugins/{$mapping['plugin']}"; 
    312             if ($condition === true) 
    313                 $target = call_user_func($mapping['listener'], $target, $mother); 
    314             else 
    315                 $target = call_user_func($mapping['listener'], $target, $mother, $condition); 
     312            $target = call_user_func($mapping['listener'], $target, $mother); 
    316313        } 
    317314    } 
  • trunk/library/view/view.php

    r7645 r7648  
    11411141} 
    11421142 
    1143 function getEntryContentView($blogid, $id, $content, $formatter, $keywords = array(), $type = 'Post', $useAbsolutePath = false, $commonMode = true) { 
     1143function getEntryContentView($blogid, $id, $content, $formatter, $keywords = array(), $type = 'Post', $useAbsolutePath = false, $bRssMode = false) { 
    11441144    global $hostURL, $service; 
    11451145    requireModel('blog.attachment'); 
    11461146    requireModel('blog.keyword'); 
    11471147    $content = fireEvent('Format' . $type . 'Content', $content, $id); 
    1148     $func = ($commonMode !== true ? 'summarizeContent' : 'formatContent'); 
     1148    $func = ($bRssMode ? 'summarizeContent' : 'formatContent'); 
    11491149    $view = $func($blogid, $id, $content, $formatter, $keywords, $useAbsolutePath); 
    11501150    if (defined('__TEXTCUBE_MOBILE__')) 
     
    11541154 
    11551155    if (!empty($keywords) && is_array($keywords)) $view = bindKeywords($keywords, $view); 
    1156     $view = fireEvent('View' . $type . 'Content', $view, $id, $commonMode); 
     1156    $view = fireEvent('View' . $type . 'Content', $view, $id); 
    11571157     
    11581158    // image resampling