Fix link to image of MD files

This commit is contained in:
Laurent Destailleur 2017-06-27 20:02:46 +02:00
parent 2f9cc1c919
commit 7e6e0ee3a4
3 changed files with 10 additions and 4 deletions

View File

@ -652,7 +652,12 @@ class DolibarrModules // Can not be abstract, because we need to insta
if ((float) DOL_VERSION >= 6.0)
{
@include_once DOL_DOCUMENT_ROOT.'/core/lib/parsemd.lib.php';
$content = dolMd2Html($content, 'parsedown', array('doc/'=>dol_buildpath(strtolower($this->name).'/doc/', 1)));
$content = dolMd2Html($content, 'parsedown',
array(
'doc/'=>dol_buildpath(strtolower($this->name).'/doc/', 1),
'img/'=>dol_buildpath(strtolower($this->name).'/img/', 1),
'images/'=>dol_buildpath(strtolower($this->name).'/imgages/', 1),
));
}
else
{

View File

@ -33,4 +33,5 @@ ApiClassFile=File for PHP API class
PageForList=PHP page for list of record
PageForCreateEditView=PHP page to create/edit/view a record
PathToModulePackage=Path to zip of module/application package
SpaceOrSpecialCharAreNotAllowed=Spaces or special characters are not allowed.
SpaceOrSpecialCharAreNotAllowed=Spaces or special characters are not allowed.
PackageFileNotYetGenerated=Package file not yet generated

View File

@ -246,11 +246,11 @@ if ($dirins && $action == 'confirm_delete')
if ($result > 0)
{
setEventMessages($langs->trans("DirDeleted"), null);
setEventMessages($langs->trans("DirWasRemoved", $modulelowercase), null);
}
else
{
setEventMessages($langs->trans("NothingDeleted"), null, 'warnings');
setEventMessages($langs->trans("PurgeNothingToDelete"), null, 'warnings');
}
}