move include_once to include when it's a tpl

This commit is contained in:
Alexandre SPANGARO
2021-04-12 21:25:58 +02:00
parent 80995c34b5
commit 4b9bf40a8f
36 changed files with 36 additions and 36 deletions

View File

@@ -218,7 +218,7 @@ if ($object->id)
//$relativepathwithnofile='myobject/' . dol_sanitizeFileName($object->id).'/';
$relativepathwithnofile = 'myobject/'.dol_sanitizeFileName($object->ref).'/';
include_once DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
include DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
} else {
accessforbidden('', 0, 1);
}