diff --git a/apps/maarch_entreprise/xml/applicationVersion.xml b/apps/maarch_entreprise/xml/applicationVersion.xml deleted file mode 100755 index 91982621a99d32b1eec62c54c0124dc6f598d4f2..0000000000000000000000000000000000000000 --- a/apps/maarch_entreprise/xml/applicationVersion.xml +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<root> - <version>20.10.1</version> -</root> diff --git a/src/core/models/CoreConfigModel.php b/src/core/models/CoreConfigModel.php index bb915e99e047d764a66e3fb57fb9287b923268d2..43db7707cd1050f92cd739f4b6b190abd4242d21 100755 --- a/src/core/models/CoreConfigModel.php +++ b/src/core/models/CoreConfigModel.php @@ -91,13 +91,10 @@ class CoreConfigModel public static function getApplicationVersion() { - $loadedXml = CoreConfigModel::getXmlLoaded(['path' => 'apps/maarch_entreprise/xml/applicationVersion.xml']); + $file = file_get_contents('package.json'); + $file = json_decode($file, true); - if (empty($loadedXml)) { - return ''; - } - - return (string)$loadedXml->version; + return $file['version']; } public static function getLanguage()