aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/siteinfo.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/mod/siteinfo.php b/mod/siteinfo.php
index 4c5782abe..52d014de1 100644
--- a/mod/siteinfo.php
+++ b/mod/siteinfo.php
@@ -1,8 +1,6 @@
<?php
function siteinfo_init(&$a) {
-
-
if (argv(1) === 'json') {
$data = get_site_info();
json_return_and_die($data);
@@ -17,7 +15,7 @@ function siteinfo_content(&$a) {
$version = sprintf( t('Version %s'), RED_VERSION );
if(@is_dir('.git') && function_exists('shell_exec')) {
$commit = @shell_exec('git log -1 --format="%h"');
- $tag = @shell_exec('git describe --tags --abbrev=0');
+ $tag = get_std_version(); // @shell_exec('git describe --tags --abbrev=0');
}
if(! isset($commit) || strlen($commit) > 16)
$commit = '';