/**
  * Recent activities for selected user
  *
  * @param void
  * @return null
  */
 function recent_activities()
 {
     if ($this->active_user->isNew()) {
         $this->httpError(HTTP_ERR_NOT_FOUND);
     }
     // if
     if (!$this->active_user->canViewActivities($this->logged_user)) {
         $this->httpError(HTTP_ERR_FORBIDDEN);
     }
     // if
     $page = (int) $this->request->get('page');
     if ($page < 1) {
         $page = 1;
     }
     // if
     $per_page = 15;
     list($recent_activities, $pagination) = ActivityLogs::paginateActivitiesByUser($this->active_user, $page, $per_page);
     $this->smarty->assign(array('recent_activities' => group_by_date($recent_activities), 'pagination' => $pagination));
 }