From 01d7b1e96ad906b2d497488cef1c12362c8aca19 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 5 Nov 2018 10:15:22 +0100 Subject: [PATCH] Fix readme detection --- htdocs/emailcollector/README.md | 6 ++++++ htdocs/modulebuilder/index.php | 9 +++++---- 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 htdocs/emailcollector/README.md diff --git a/htdocs/emailcollector/README.md b/htdocs/emailcollector/README.md new file mode 100644 index 00000000000..4c307183f19 --- /dev/null +++ b/htdocs/emailcollector/README.md @@ -0,0 +1,6 @@ +EMailCollector +============== + +This module provides a sheduled job that scan regularly one or several IMAP email boxes, with filtering rules, to automatically record data in your application, like +* recording the email in the history of events (event is automatically linked to its related objects if possible, for example when a customer reply to an email sent from the application, the answer is automatically linked to the good objects) +* and/or creating a lead diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index f9c123d8db0..af589be569e 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -35,7 +35,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/utils.class.php'; // Load translation files required by the page -$langs->loadLangs(array("admin", "modulebuilder", "other", "cron")); +$langs->loadLangs(array("admin", "modulebuilder", "other", "cron", "errors")); $action=GETPOST('action','aZ09'); $confirm=GETPOST('confirm','alpha'); @@ -1280,8 +1280,8 @@ elseif (! empty($module)) print '
'; print '
'; - - print $moduleobj->getDescLong(); + if (dol_is_file($dirread.'/'.$pathtofilereadme)) print $moduleobj->getDescLong(); + else print $langs->trans("ErrorFileNotFound", $pathtofilereadme); print '

'; @@ -1291,7 +1291,8 @@ elseif (! empty($module)) print '
'; print '
'; - print $moduleobj->getChangeLog(); + if (dol_is_file($dirread.'/'.$pathtochangelog)) print $moduleobj->getChangeLog(); + else print $langs->trans("ErrorFileNotFound", $pathtochangelog); print '
'; }