diff options
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/html.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php index f8a5b62..1dc3d2c 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php | |||
| @@ -41,7 +41,7 @@ function html_end() { | |||
| 41 | $version = 'v?'; | 41 | $version = 'v?'; |
| 42 | if (file_exists($git) && is_dir($CONFIG['webdir'].'/.git')) { | 42 | if (file_exists($git) && is_dir($CONFIG['webdir'].'/.git')) { |
| 43 | chdir($CONFIG['webdir']); | 43 | chdir($CONFIG['webdir']); |
| 44 | $version = exec($git.' describe'); | 44 | $version = exec($git.' describe --tags'); |
| 45 | } elseif (file_exists($changelog)) { | 45 | } elseif (file_exists($changelog)) { |
| 46 | $changelog = file($changelog); | 46 | $changelog = file($changelog); |
| 47 | $version = explode(' ', $changelog[0]); | 47 | $version = explode(' ', $changelog[0]); |
