diff --git a/Makefile b/Makefile index 41eb8fcec..65319e8f2 100644 --- a/Makefile +++ b/Makefile @@ -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 # webapp diff --git a/install/install.php b/install/install.php index 0fbe19b80..ccc4abcee 100644 --- a/install/install.php +++ b/install/install.php @@ -122,8 +122,10 @@ function fileExistsInIncludePath($file) { /* {{{ */ /** * Load default settings + set */ +require_once('../inc/inc.Version.php'); +$ver = new SeedDMS_Version(); define("SEEDDMS_INSTALL", "on"); -define("SEEDDMS_VERSION", "5.1.10"); +define("SEEDDMS_VERSION", $ver->version()); require_once('../inc/inc.ClassSettings.php');