Skip to content

Commit

Permalink
1.7.0: Dernière activité dans les posts quand il n'y en a pas
Browse files Browse the repository at this point in the history
  • Loading branch information
eoxia-alexandre committed May 23, 2018
1 parent 99aa853 commit 5f7ae51
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions module/activity/filter/class-activity-filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,16 @@ public function post_last_activity( $current_output, $post, $tasks ) {
) );
$last_activity = ob_get_clean();

ob_start();
\eoxia\View_Util::exec( 'task-manager', 'activity', 'backend/post-last-activity', array(
'post' => $post,
'task_ids_for_history' => implode( ',', $task_ids_for_history ),
'last_activity' => $last_activity,
'last_date' => \eoxia\Date_Util::g()->fill_date( $last_date ),
) );
$current_output .= ob_get_clean();
if ( ! empty( $task_ids_for_history ) ) {
ob_start();
\eoxia\View_Util::exec( 'task-manager', 'activity', 'backend/post-last-activity', array(
'post' => $post,
'task_ids_for_history' => implode( ',', $task_ids_for_history ),
'last_activity' => $last_activity,
'last_date' => \eoxia\Date_Util::g()->fill_date( $last_date ),
) );
$current_output .= ob_get_clean();
}

return $current_output;
}
Expand Down

0 comments on commit 5f7ae51

Please sign in to comment.