noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 13/20: FIX : when taken from git NOALYSS_VERS


From: dwm
Subject: [Noalyss-commit] [noalyss] 13/20: FIX : when taken from git NOALYSS_VERSION is undefined
Date: Sun, 10 Dec 2023 03:22:24 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit f7be1ec6bbcc27a485719de95d799552d3a30799
Author: Dany wm <danydb@noalyss.eu>
AuthorDate: Wed Dec 6 18:00:37 2023 +0100

    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 = "<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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]