/**
  * Display the main information center modal.
  * @param $args array
  * @param $request PKPRequest
  */
 function viewInformationCenter($args, $request)
 {
     $this->setupTemplate($request);
     // Assign variables to the template manager and display
     $templateMgr = TemplateManager::getManager($request);
     $fileName = ($s = $this->submissionFile->getLocalizedName()) != '' ? $s : __('common.untitled');
     if (($i = $this->submissionFile->getRevision()) > 1) {
         $fileName .= " ({$i})";
     }
     // Add revision number to label
     if (empty($fileName)) {
         $fileName = __('common.untitled');
     }
     $templateMgr->assign('title', $fileName);
     $templateMgr->assign('removeHistoryTab', (int) $request->getUserVar('removeHistoryTab'));
     return parent::viewInformationCenter($args, $request);
 }
 /**
  * Display the main information center modal.
  * @param $args array
  * @param $request PKPRequest
  */
 function viewInformationCenter($args, $request)
 {
     // Get the latest history item to display in the header
     $submissionEventLogDao = DAORegistry::getDAO('SubmissionEventLogDAO');
     $submissionEvents = $submissionEventLogDao->getBySubmissionId($this->_submission->getId());
     $lastEvent = $submissionEvents->next();
     // Assign variables to the template manager and display
     $templateMgr = TemplateManager::getManager($request);
     if (isset($lastEvent)) {
         $templateMgr->assign('lastEvent', $lastEvent);
         // Get the user who posted the last note
         $userDao = DAORegistry::getDAO('UserDAO');
         $user = $userDao->getById($lastEvent->getUserId());
         $templateMgr->assign('lastEventUser', $user);
     }
     return parent::viewInformationCenter($args, $request);
 }