From 041c93ce0bc00cb6417ce2e4bdce2ed84d37f50a Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Tue, 22 May 2012 06:31:37 -0400 Subject: [PATCH] Removed $Id$ --- program/include/rcube_output_html.php | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/program/include/rcube_output_html.php b/program/include/rcube_output_html.php index 237bc81..fc6b3a2 100644 --- a/program/include/rcube_output_html.php +++ b/program/include/rcube_output_html.php @@ -17,10 +17,7 @@ +-----------------------------------------------------------------------+ | Author: Thomas Bruederli <roundcube@gmail.com> | +-----------------------------------------------------------------------+ - - $Id$ - - */ +*/ /** @@ -770,6 +767,13 @@ if (preg_match('/Revision:\s(\d+)/', @shell_exec('svn info'), $regs)) $ver .= ' [SVN r'.$regs[1].']'; } + else if (is_file(INSTALL_PATH . '.git/index')) { + if (preg_match('/Date:\s+([^\n]+)/', @shell_exec('git log -1'), $regs)) { + if ($date = date('Ymd.Hi', strtotime($regs[1]))) { + $ver .= ' [GIT '.$date.']'; + } + } + } $content = html::quote($ver); } else if ($object == 'steptitle') { -- Gitblit v1.9.1