get version from inc/inc.Version.php

This commit is contained in:
Uwe Steinmann 2018-11-16 12:25:16 +01:00
parent f50988af09
commit f9bb845aca
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
VERSION=5.1.10 VERSION=$(shell php -r 'include("inc/inc.Version.php"); $$v=new SeedDMS_Version(); echo $$v->version();')
SRC=CHANGELOG inc conf utils index.php languages views op out controllers doc styles TODO LICENSE webdav install restapi pdfviewer SRC=CHANGELOG inc conf utils index.php languages views op out controllers doc styles TODO LICENSE webdav install restapi pdfviewer
# webapp # webapp

View File

@ -122,8 +122,10 @@ function fileExistsInIncludePath($file) { /* {{{ */
/** /**
* Load default settings + set * Load default settings + set
*/ */
require_once('../inc/inc.Version.php');
$ver = new SeedDMS_Version();
define("SEEDDMS_INSTALL", "on"); define("SEEDDMS_INSTALL", "on");
define("SEEDDMS_VERSION", "5.1.10"); define("SEEDDMS_VERSION", $ver->version());
require_once('../inc/inc.ClassSettings.php'); require_once('../inc/inc.ClassSettings.php');