Example #1
0
 /**
  * Get the last author with the last modification time
  * @param Page $page
  * @return string HTML
  */
 protected function getAuthor(Page $page)
 {
     $user = User::newFromName($page->getUserText(), false);
     $timestamp = $page->getTimestamp();
     if ($timestamp) {
         $lang = $this->getLanguage();
         $d = $lang->date($page->getTimestamp(), true);
         $t = $lang->time($page->getTimestamp(), true);
     } else {
         $d = '';
         $t = '';
     }
     return $this->msg('lastmodifiedatby', $d, $t)->rawParams($this->userLink($user))->params($user->getName())->escaped();
 }