[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[noalyss-generale] Dossier personnel de configuration
From: |
address@hidden |
Subject: |
[noalyss-generale] Dossier personnel de configuration |
Date: |
Thu, 11 Nov 2021 18:42:19 +0100 |
Bonsoir à tous,
Souhaitant utiliser le dossier GIT pour suivre les versions de NOALYSS au plus
près, je viens de m’apercevoir qu’il fallait déjà modifier le code pour
fonctionner.
Ne serait-il pas possible d’avoir un dossier “.local_conf” avec les
modifications effectuées par l’installateur ?
Nous pourrions y mettre la version de NOALYSS par exemple puisque dans le code
c’est une variable globale au serveur.
Par exemple, j’ai fait cette modification :
—————————————————————
diff --git a/include/constant.php b/include/constant.php
index 819f8b52..6cb9232a 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -90,7 +90,7 @@ $g_succeed="<span
style=\"font-size:18px;color:green\">✓</span>";
define ('SMALLX','#xe816;');
define ('BUTTONADD',"✚");
-define ('SVNINFO',NOALYSS_VERSION);
+define ('SVNINFO',`cat ../.local_conf/NOALYSS_VERSION`);
if ( ! defined ('DEBUGNOALYSS')) {
define ("DEBUGNOALYSS",0);
}
—————————————————————
Par ailleurs, pourquoi beaucoup de fichiers sont-ils modifiés après le passage
de la mise à jour ?
—————————————————————
➜ noalyss git:(8b28b18c) ✗ git status --short --branch
## HEAD (aucune branche)
M html/css/style-classic7.css
M html/index.php
M html/js/acc_ledger.js
M html/js/compute_direct.js
M include/class/acc_account_ledger.class.php
M include/class/document_export.class.php
M include/class/fiche.class.php
M include/class/user.class.php
M include/config.inc.example
M include/constant.php
M include/lib/ifile.class.php
?? .local_conf/
?? changelog
?? html/lang/en_US/LC_MESSAGES/messages.mo
?? html/lang/nl_NL/LC_MESSAGES/messages.mo
?? html/tmp/noalyss.zip
?? include/config.inc.php
—————————————————————
Merci de vos lumières
Philippe
- [noalyss-generale] Dossier personnel de configuration,
address@hidden <=