noalyss-commit
[Top][All Lists]
Advanced

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

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


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 38/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 112f648c2fff049b51c57545a9a0e3160cb9e224
Author: Dany De Bontridder <address@hidden>
Date:   Mon Dec 17 23:53:31 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php
index 40cb46b..4a32019 100644
--- a/include/lib/ac_common.php
+++ b/include/lib/ac_common.php
@@ -1104,7 +1104,7 @@ 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']))
+                            if (file_exists ($file[0]['me_file']) || 
file_exists(NOALYSS_INCLUDE.'/'.$file[0]['me_file']))
                             {
                                require_once $file[0]['me_file'];
                             } else {



reply via email to

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