diff options
author | Minteck <contact@minteck.org> | 2022-04-14 17:04:41 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-04-14 17:04:41 +0200 |
commit | f6e5be4e0ef648d3eb1d8a12edcb48dbb8c31037 (patch) | |
tree | f971559dd665e8a9ef84fdaea41044786605a80f /includes/functions.php | |
parent | 3c570954b0cc0d358aa00ab4cae4e91a2bb3a3da (diff) | |
download | ember-f6e5be4e0ef648d3eb1d8a12edcb48dbb8c31037.tar.gz ember-f6e5be4e0ef648d3eb1d8a12edcb48dbb8c31037.tar.bz2 ember-f6e5be4e0ef648d3eb1d8a12edcb48dbb8c31037.zip |
Fix
Diffstat (limited to 'includes/functions.php')
-rw-r--r-- | includes/functions.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/functions.php b/includes/functions.php index 470a740..defa152 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -8,4 +8,12 @@ function version() { } else { return "trunk"; } +} + +function build() { + if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/.build")) { + return substr(trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/.build")), 0, 8); + } else { + return "dev"; + } }
\ No newline at end of file |