From f7be1ec6bbcc27a485719de95d799552d3a30799 Mon Sep 17 00:00:00 2001 From: Dany wm Date: Wed, 6 Dec 2023 18:00:37 +0100 Subject: [PATCH] FIX : when taken from git NOALYSS_VERSION is undefined --- include/constant.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/constant.php b/include/constant.php index b939750d7..48584f3e1 100644 --- a/include/constant.php +++ b/include/constant.php @@ -90,6 +90,12 @@ $g_succeed = ""; define('SMALLX', '#xe816;'); define('BUTTONADD', "✚"); +// If noalyss_version is not defined it is likely directly taken from +// git and so this variable is not set, this cause some issue +if (! defined ("NOALYSS_VERSION")) +{ + define("NOALYSS_VERSION",9999); +} define('SVNINFO', NOALYSS_VERSION); if (!defined('DEBUGNOALYSS')) { define("DEBUGNOALYSS", 0);