summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-06-07 13:34:41 +0000
committerthomascube <thomas@roundcube.net>2008-06-07 13:34:41 +0000
commitc8fb2b778491036db4c1b5f4fcc3b9a3c21efcc1 (patch)
treef2d6c20f8bf3801392041d3995d1f26e1e95491f /program
parent350459486d421675cb63ebdedf5b7d0cf3ceeb99 (diff)
Update UPGRADNG instructions + add SVN revision to version string (if available)
Diffstat (limited to 'program')
-rwxr-xr-xprogram/include/rcube_template.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index d519f7533..2173784b6 100755
--- a/program/include/rcube_template.php
+++ b/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;