FIX : when taken from git NOALYSS_VERSION is undefined

This commit is contained in:
Dany wm 2023-12-06 18:00:37 +01:00 committed by sparkyx
parent 4f1d7e155a
commit f7be1ec6bb

View file

@ -90,6 +90,12 @@ $g_succeed = "<span style=\"font-size:18px;color:green\">&#x2713;</span>";
define('SMALLX', '#xe816;');
define('BUTTONADD', "&#10010;");
// 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);