Debug module builder

This commit is contained in:
Laurent Destailleur 2023-03-07 16:46:42 +01:00
parent 11c16fff06
commit 5ff366178c
3 changed files with 18 additions and 7 deletions

1
.gitignore vendored
View File

@ -57,3 +57,4 @@ yarn.lock
package-lock.json
doc/install.lock
/.asciidoctorconfig.adoc

View File

@ -3357,15 +3357,15 @@ if ($module == 'initmodule') {
$pathtochangelog = $modulelowercase.'/ChangeLog.md';
if ($action != 'editfile' || empty($file)) {
print dol_get_fiche_head($head2, $tab, '', -1, '', 0, '', '', $MAXTABFOROBJECT, 'formodulesuffix'); // Description - level 2
$morehtmlright = '';
if (realpath($dirread.'/'.$modulelowercase) != $dirread.'/'.$modulelowercase) {
$morehtmlright = '<div style="padding: 12px 9px 12px">'.$form->textwithpicto('', '<span class="opacitymedium">'.$langs->trans("RealPathOfModule").' :</span> <strong class="wordbreak">'.realpath($dirread.'/'.$modulelowercase).'</strong>').'</div>';
}
print dol_get_fiche_head($head2, $tab, '', -1, '', 0, $morehtmlright, '', $MAXTABFOROBJECT, 'formodulesuffix'); // Description - level 2
print '<span class="opacitymedium">'.$langs->trans("ModuleBuilderDesc".$tab).'</span>';
$infoonmodulepath = '';
if (realpath($dirread.'/'.$modulelowercase) != $dirread.'/'.$modulelowercase) {
$infoonmodulepath = '<span class="opacitymedium">'.$langs->trans("RealPathOfModule").' :</span> <strong class="wordbreak">'.realpath($dirread.'/'.$modulelowercase).'</strong><br>';
print ' '.$infoonmodulepath;
}
print '<br>';
print '<br><br>';
print '<table>';

View File

@ -49,6 +49,16 @@ __README__
__DATA_SPECIFICATION__
== MATRIX OF PERMISSIONS
__DATA_PERMISSIONS__
== OTHER
__API_DOC__
== CHANGELOG
//include::ChangeLog.md[]