blob: 4ef2106166cc3f1373419cf2a01879e4ec9b15a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- includes/common.php.orig 2018-10-17 10:33:28 UTC
+++ includes/common.php
@@ -1158,6 +1158,10 @@ function version_info($remote = false)
$output['local_sha'] = $local_sha;
$output['local_date'] = $local_date;
$output['local_branch'] = rtrim(`git rev-parse --abbrev-ref HEAD`);
+ } else {
+ $output['local_ver'] = '%%PORTVERSION%%';
+ # obtained via git show --pretty='%H|%ct' -s %%PORTVERSION%%
+ $output['local_date'] = %%RELEASE_TIMESTAMP%%;
}
$output['db_schema'] = dbIsConnected() ? get_db_schema() : '?';
$output['php_ver'] = phpversion();
|