X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/7213175b8391e8f47f54096fada4fdc33d82b8a1..7983570288ed2798470a552ec04f64aa646b664a:/widget/login/commits.php diff --git a/widget/login/commits.php b/widget/login/commits.php index b86b6c5..d892cb5 100644 --- a/widget/login/commits.php +++ b/widget/login/commits.php @@ -18,14 +18,15 @@ if ( $log = popen($gitcmd, 'r') ) { list ($atime, $author, $message) = explode("\t", $line, 3); list ($author) = explode(' ', $author); # first name only printf('
  • %s %s • %s
  • '."\n", - $message, $author, strftime('%F %H:%M', $atime) + htmlspecialchars($message), + htmlspecialchars($author), strftime('%F %H:%M', $atime) ); $lines++; } print "\n\n"; pclose($log); - $navbase = $Page == 'login/commits' ? '?' : '/login/commits?'; + $navbase = $Page->handler == 'login/commits' ? '?' : '/login/commits?'; $nav = []; $nav[] = sprintf('Pagina %d', ceil($offset / $pagesize) + 1); if ($lines >= $pagesize) {