mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
#135 trackback 모듈 분리로 인해 연동되는 기능들의 문제 방지.
This commit is contained in:
parent
d7e6309c76
commit
2bf31f566a
3 changed files with 14 additions and 4 deletions
|
|
@ -654,6 +654,13 @@ class content extends WidgetHandler
|
|||
|
||||
function _getTrackbackItems($args)
|
||||
{
|
||||
$oTrackbackModel = &getModel('trackback');
|
||||
if(!$oTrackbackModel)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$obj = new stdClass;
|
||||
// Get categories
|
||||
$output = executeQueryArray('widgets.content.getCategories',$obj);
|
||||
if($output->toBool() && $output->data)
|
||||
|
|
@ -667,8 +674,8 @@ class content extends WidgetHandler
|
|||
$obj->module_srl = $args->module_srl;
|
||||
$obj->sort_index = $args->order_target;
|
||||
$obj->list_count = $args->list_count * $args->page_count;
|
||||
|
||||
// Get model object from the trackback module and execute getTrackbackList() method
|
||||
$oTrackbackModel = &getModel('trackback');
|
||||
$output = $oTrackbackModel->getNewestTrackbackList($obj);
|
||||
// If an error occurs, just ignore it.
|
||||
if(!$output->toBool() || !$output->data) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue