aboutsummaryrefslogtreecommitdiffstats
path: root/mod/siteinfo.php
diff options
context:
space:
mode:
authorhabeascodice <habeascodice@federated.social>2014-10-13 03:22:26 -0700
committerhabeascodice <habeascodice@federated.social>2014-10-13 03:22:26 -0700
commite4880d07d2aa447425d0b7dc3656e84de08006c0 (patch)
tree45bd5de70899a2afe03b2f213aef7cfd430a52a2 /mod/siteinfo.php
parentc854f8c238da2df08b52249142ad24ef66e422d1 (diff)
parenta512d1a4aab35ac874ccbff89d84fdd6d5b3343f (diff)
downloadvolse-hubzilla-e4880d07d2aa447425d0b7dc3656e84de08006c0.tar.gz
volse-hubzilla-e4880d07d2aa447425d0b7dc3656e84de08006c0.tar.bz2
volse-hubzilla-e4880d07d2aa447425d0b7dc3656e84de08006c0.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'mod/siteinfo.php')
-rw-r--r--mod/siteinfo.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/siteinfo.php b/mod/siteinfo.php
index c1d65fadd..a58f17c53 100644
--- a/mod/siteinfo.php
+++ b/mod/siteinfo.php
@@ -88,8 +88,10 @@ function siteinfo_content(&$a) {
if(! get_config('system','hidden_version_siteinfo')) {
$version = sprintf( t('Version %s'), RED_VERSION );
- if(@is_dir('.git') && function_exists('shell_exec'))
+ if(@is_dir('.git') && function_exists('shell_exec')) {
$commit = @shell_exec('git log -1 --format="%h"');
+ $tag = @shell_exec('git describe --tags --abbrev=0');
+ }
if(! isset($commit) || strlen($commit) > 16)
$commit = '';
}
@@ -130,6 +132,7 @@ function siteinfo_content(&$a) {
'$title' => t('Red'),
'$description' => t('This is a hub of the Red Matrix - a global cooperative network of decentralized privacy enhanced websites.'),
'$version' => $version,
+ '$tag' => $tag,
'$commit' => $commit,
'$web_location' => t('Running at web location') . ' ' . z_root(),
'$visit' => t('Please visit <a href="http://getzot.com">GetZot.com</a> to learn more about the Red Matrix.'),