diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-07 13:34:41 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-07 13:34:41 +0000 |
| commit | f91adb2e30eae548dd457327a6ca50217dfc909e (patch) | |
| tree | 35d0394d96bd9acc16649a7ffd64e2c973a622f0 /roundcubemail/program/include/rcube_template.php | |
| parent | 58e46212b590ae379d3ae290c1c2a4a5e45d0d10 (diff) | |
Update UPGRADNG instructions + add SVN revision to version string (if available)
git-svn-id: https://svn.roundcube.net/trunk@1488 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_template.php')
| -rwxr-xr-x | roundcubemail/program/include/rcube_template.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_template.php b/roundcubemail/program/include/rcube_template.php index d519f7533..2173784b6 100755 --- a/roundcubemail/program/include/rcube_template.php +++ b/roundcubemail/program/include/rcube_template.php @@ -534,7 +534,12 @@ class rcube_template extends rcube_html_page return Q($name); } if ($object=='version') { - return (string)RCMAIL_VERSION; + $ver = (string)RCMAIL_VERSION; + if (is_file(INSTALL_PATH . '.svn/entries')) { + if (preg_match('/Revision:\s(\d+)/', @shell_exec('svn info'), $regs)) + $ver .= ' [SVN r'.$regs[1].']'; + } + return $ver; } if ($object=='pagetitle') { $task = $this->task; |
