Fix readme detection

This commit is contained in:
Laurent Destailleur 2018-11-05 10:15:22 +01:00
parent 0c7f33e1ba
commit 01d7b1e96a
2 changed files with 11 additions and 4 deletions

View File

@ -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

View File

@ -35,7 +35,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/utils.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/utils.class.php';
// Load translation files required by the page // 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'); $action=GETPOST('action','aZ09');
$confirm=GETPOST('confirm','alpha'); $confirm=GETPOST('confirm','alpha');
@ -1280,8 +1280,8 @@ elseif (! empty($module))
print '<div class="underbanner clearboth"></div>'; print '<div class="underbanner clearboth"></div>';
print '<div class="fichecenter">'; print '<div class="fichecenter">';
if (dol_is_file($dirread.'/'.$pathtofilereadme)) print $moduleobj->getDescLong();
print $moduleobj->getDescLong(); else print $langs->trans("ErrorFileNotFound", $pathtofilereadme);
print '<br><br>'; print '<br><br>';
@ -1291,7 +1291,8 @@ elseif (! empty($module))
print '<div class="underbanner clearboth"></div>'; print '<div class="underbanner clearboth"></div>';
print '<div class="fichecenter">'; print '<div class="fichecenter">';
print $moduleobj->getChangeLog(); if (dol_is_file($dirread.'/'.$pathtochangelog)) print $moduleobj->getChangeLog();
else print $langs->trans("ErrorFileNotFound", $pathtochangelog);
print '</div>'; print '</div>';
} }