Skip to content

Commit

Permalink
#2155 게시물 주소에 생략된 mid 추가
Browse files Browse the repository at this point in the history
- #2168 PR과 동일하게 mconent 위젯 수정
  - @smaker 님 코드 참고
  • Loading branch information
bnu committed Nov 27, 2017
1 parent fcf9b46 commit be7df7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions widgets/mcontent/mcontent.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function _getCommentItems($args)
$attribute = $oComment->getObjectVars();
$title = $oComment->getSummary($args->content_cut_size);
$thumbnail = $oComment->getThumbnail();
$url = sprintf("%s#comment_%s",getUrl('','document_srl',$oComment->get('document_srl')),$oComment->get('comment_srl'));
$url = sprintf("%s#comment_%s",getUrl('', 'mid', $args->mid_lists[$attribute->module_srl], 'document_srl',$oComment->get('document_srl')),$oComment->get('comment_srl'));

$attribute->mid = $args->mid_lists[$attribute->module_srl];
$browser_title = $args->module_srls_info[$attribute->module_srl]->browser_title;
Expand Down Expand Up @@ -255,7 +255,7 @@ function _getDocumentItems($args)
$content_item->setCategory( $category_lists[$module_srl][$category_srl]->title );
$content_item->setDomain( $args->module_srls_info[$module_srl]->domain );
$content_item->setContent($oDocument->getSummary($args->content_cut_size));
$content_item->setLink( getSiteUrl($domain,'','document_srl',$document_srl) );
$content_item->setLink( getSiteUrl($domain,'', 'mid',$args->mid_lists[$module_srl], 'document_srl',$document_srl) );
$content_item->setThumbnail($thumbnail);
$content_item->add('mid', $args->mid_lists[$module_srl]);
if($first_thumbnail_idx==-1 && $thumbnail) $first_thumbnail_idx = $i;
Expand Down Expand Up @@ -605,7 +605,7 @@ function _getTrackbackItems($args){
{
$domain = $args->module_srls_info[$item->module_srl]->domain;
$category = $category_lists[$item->module_srl]->text;
$url = getSiteUrl($domain,'','document_srl',$item->document_srl);
$url = getSiteUrl($domain,'','mid', $args->mid_lists[$item->module_srl],'document_srl',$item->document_srl);
$browser_title = $args->module_srls_info[$item->module_srl]->browser_title;

$content_item = new mcontentItem($browser_title);
Expand Down

0 comments on commit be7df7a

Please sign in to comment.