noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 39/44: cfgcurrency : file for the new version


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 39/44: cfgcurrency : file for the new version : if the file to include does not exist then display a warning and exit look also into NOALYSS_INCLUDE
Date: Wed, 26 Dec 2018 04:29:56 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 836ac70d0cc99503c55e4eff3f1b93ede86ffd14
Author: Dany De Bontridder <address@hidden>
Date:   Mon Dec 17 23:54:32 2018 +0100

    cfgcurrency : file for the new version :
    if the file to include does not exist then display a warning and exit
    look also into NOALYSS_INCLUDE
---
 include/lib/ac_common.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php
index 4a32019..c57d20a 100644
--- a/include/lib/ac_common.php
+++ b/include/lib/ac_common.php
@@ -1104,10 +1104,12 @@ function show_menu($module)
                        // if file is not a plugin, include the file, otherwise
                        // include the plugin launcher
                        if ( $file[0]['me_type'] != 'PL') {
-                            if (file_exists ($file[0]['me_file']) || 
file_exists(NOALYSS_INCLUDE.'/'.$file[0]['me_file']))
+                            if (file_exists ($file[0]['me_file']) )
                             {
                                require_once $file[0]['me_file'];
-                            } else {
+                            } elseif ( 
file_exists(NOALYSS_INCLUDE.'/'.$file[0]['me_file'])) {
+                               require_once 
NOALYSS_INCLUDE.'/'.$file[0]['me_file'];
+                            }else {                            
                                 echo echo_warning(_("Fichier non trouvé"));
                             }
                         } else {



reply via email to

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