[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 37/44: cfgcurrency : file for the new version
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 37/44: cfgcurrency : file for the new version : if the file to include does not exist then display a warning and exit |
Date: |
Wed, 26 Dec 2018 04:29:56 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 3efb8904feb19c3345610af4c1d0299d792cb188
Author: Dany De Bontridder <address@hidden>
Date: Mon Dec 17 23:30:55 2018 +0100
cfgcurrency : file for the new version :
if the file to include does not exist then display a warning and exit
---
include/lib/ac_common.php | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php
index 9ace668..40cb46b 100644
--- a/include/lib/ac_common.php
+++ b/include/lib/ac_common.php
@@ -1103,10 +1103,16 @@ 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[0]['me_type'] != 'PL') {
+ if (file_exists($file[0]['me_file']))
+ {
require_once $file[0]['me_file'];
- else
+ } else {
+ echo echo_warning(_("Fichier non trouvé"));
+ }
+ } else {
require 'extension_get.inc.php';
+ }
exit();
}
- [Noalyss-commit] [noalyss] 10/44: javascript : small bug in alert_box , callback function is not defined, (continued)
- [Noalyss-commit] [noalyss] 10/44: javascript : small bug in alert_box , callback function is not defined, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 14/44: css cosmetic background for selected style-classic7, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 26/44: Version DB 131, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 24/44: Analytic accountancy : fix bug, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 20/44: Document::replace_value handle space before numeric, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 16/44: http_input : fix bug with array, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 35/44: predefined operation , find a label for an accounting thx its value, the pk is now an numeric id, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 17/44: Document : replace properly value in the OOo file, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 40/44: PHP 7.2 : sizeof attribut, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 22/44: Exception rethrow, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 37/44: cfgcurrency : file for the new version : if the file to include does not exist then display a warning and exit,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 05/44: Bug : cannot set group, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 21/44: cosmetic, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 30/44: acc_ledger_fin . translation, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 29/44: Background color, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 27/44: Quant_Fin : set the j_id when an operation is recorded, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 25/44: Currency : SQL quant_fin is adapted, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 31/44: Indentation, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 32/44: change background, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 15/44: typo, Dany De Bontridder, 2018/12/26
- [Noalyss-commit] [noalyss] 34/44: predefined operation , invalid value for database::setp, Dany De Bontridder, 2018/12/26