Browse Source

move include_once to include when it's a tpl

Alexandre SPANGARO 4 years ago
parent
commit
4b9bf40a8f
36 changed files with 36 additions and 36 deletions
  1. 1 1
      htdocs/adherents/document.php
  2. 1 1
      htdocs/asset/document.php
  3. 1 1
      htdocs/bom/bom_document.php
  4. 1 1
      htdocs/comm/action/document.php
  5. 1 1
      htdocs/comm/propal/document.php
  6. 1 1
      htdocs/commande/document.php
  7. 1 1
      htdocs/compta/bank/account_statement_document.php
  8. 1 1
      htdocs/compta/bank/document.php
  9. 1 1
      htdocs/compta/bank/various_payment/document.php
  10. 1 1
      htdocs/compta/deplacement/document.php
  11. 1 1
      htdocs/compta/facture/document.php
  12. 1 1
      htdocs/compta/sociales/document.php
  13. 1 1
      htdocs/compta/tva/document.php
  14. 1 1
      htdocs/contact/document.php
  15. 1 1
      htdocs/contrat/document.php
  16. 1 1
      htdocs/don/document.php
  17. 1 1
      htdocs/expedition/document.php
  18. 1 1
      htdocs/expensereport/document.php
  19. 1 1
      htdocs/fichinter/document.php
  20. 1 1
      htdocs/fourn/commande/document.php
  21. 1 1
      htdocs/holiday/document.php
  22. 1 1
      htdocs/loan/document.php
  23. 1 1
      htdocs/modulebuilder/template/myobject_document.php
  24. 1 1
      htdocs/mrp/mo_document.php
  25. 1 1
      htdocs/product/document.php
  26. 1 1
      htdocs/product/stock/productlot_document.php
  27. 1 1
      htdocs/projet/document.php
  28. 1 1
      htdocs/projet/tasks/document.php
  29. 1 1
      htdocs/recruitment/recruitmentcandidature_document.php
  30. 1 1
      htdocs/recruitment/recruitmentjobposition_document.php
  31. 1 1
      htdocs/resource/document.php
  32. 1 1
      htdocs/salaries/document.php
  33. 1 1
      htdocs/societe/document.php
  34. 1 1
      htdocs/supplier_proposal/document.php
  35. 1 1
      htdocs/ticket/document.php
  36. 1 1
      htdocs/user/document.php

+ 1 - 1
htdocs/adherents/document.php

@@ -152,7 +152,7 @@ if ($id > 0) {
 		$permission = $user->rights->adherent->creer;
 		$permtoedit = $user->rights->adherent->creer;
 		$param = '&id='.$object->id;
-		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';
 		print "<br><br>";
 	} else {
 		dol_print_error($db);

+ 1 - 1
htdocs/asset/document.php

@@ -126,7 +126,7 @@ if ($id > 0 || !empty($ref))
 		$permission = $user->rights->asset->write;
 		$permtoedit = $user->rights->asset->write;
 		$param = '&id='.$object->id;
-		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 {
 		dol_print_error($db);
 	}

+ 1 - 1
htdocs/bom/bom_document.php

@@ -139,7 +139,7 @@ if ($object->id)
 	//$relativepathwithnofile='bom/' . dol_sanitizeFileName($object->id).'/';
 	$relativepathwithnofile = 'bom/'.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);
 }

+ 1 - 1
htdocs/comm/action/document.php

@@ -260,7 +260,7 @@ if ($object->id > 0)
 	$modulepart = 'actions';
 	$permission = $user->rights->agenda->myactions->create || $user->rights->agenda->allactions->create;
 	$param = '&id='.$object->id;
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/comm/propal/document.php

@@ -178,7 +178,7 @@ if ($object->id > 0)
 	$permission = $user->rights->propal->creer;
 	$permtoedit = $user->rights->propal->creer;
 	$param = '&id='.$object->id;
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/commande/document.php

@@ -181,7 +181,7 @@ if ($id > 0 || !empty($ref))
 		$permission = $user->rights->commande->creer;
 		$permtoedit = $user->rights->commande->creer;
 		$param = '&id='.$object->id.'&entity='.(!empty($object->entity) ? $object->entity : $conf->entity);
-		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 {
 		dol_print_error($db);
 	}

+ 1 - 1
htdocs/compta/bank/account_statement_document.php

@@ -191,7 +191,7 @@ if ($id > 0 || !empty($ref)) {
 		$param = '&id='.$object->id.'&num='.urlencode($numref);
 		$moreparam = '&num='.urlencode($numref); ;
 		$relativepathwithnofile = $id."/statement/".dol_sanitizeFileName($numref)."/";
-		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 {
 		dol_print_error($db);
 	}

+ 1 - 1
htdocs/compta/bank/document.php

@@ -130,7 +130,7 @@ if ($id > 0 || !empty($ref)) {
 		$permission = $user->rights->banque->modifier;
 		$permtoedit = $user->rights->banque->modifier;
 		$param = '&id='.$object->id;
-		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 {
 		dol_print_error($db);
 	}

+ 1 - 1
htdocs/compta/bank/various_payment/document.php

@@ -148,7 +148,7 @@ if ($object->id)
 	$modulepart = 'banque';
 	$permission = $user->rights->banque->modifier;
 	$param = '&id='.$object->id;
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/compta/deplacement/document.php

@@ -122,7 +122,7 @@ if ($object->id)
 	$modulepart = 'deplacement';
 	$permission = $user->rights->deplacement->creer;
 	$param = '&id='.$object->id;
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/compta/facture/document.php

@@ -180,7 +180,7 @@ if ($id > 0 || !empty($ref))
 		$permission = $user->rights->facture->creer;
 		$permtoedit = $user->rights->facture->creer;
 		$param = '&id='.$object->id;
-		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 {
 		dol_print_error($db);
 	}

+ 1 - 1
htdocs/compta/sociales/document.php

@@ -162,7 +162,7 @@ if ($object->id)
 	$permission = $user->rights->tax->charges->creer;
 	$permtoedit = $user->rights->tax->charges->creer;
 	$param = '&id='.$object->id;
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/compta/tva/document.php

@@ -147,7 +147,7 @@ if ($object->id)
 	$permission = $user->rights->tax->charges->creer;
 	$permtoedit = $user->rights->tax->charges->creer;
 	$param = '&id='.$object->id;
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/contact/document.php

@@ -168,7 +168,7 @@ if ($object->id)
 	$permission = $user->rights->societe->contact->creer;
 	$permtoedit = $user->rights->societe->contact->creer;
 	$param = '&id='.$object->id;
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/contrat/document.php

@@ -192,7 +192,7 @@ if ($object->id)
 	$permission = $user->rights->contrat->creer;
 	$permtoedit = $user->rights->contrat->creer;
 	$param = '&id='.$object->id;
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/don/document.php

@@ -185,7 +185,7 @@ if ($object->id)
 	$permission = $user->rights->don->creer;
 	$permtoedit = $user->rights->don->creer;
 	$param = '&id='.$object->id;
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/expedition/document.php

@@ -175,7 +175,7 @@ if ($id > 0 || !empty($ref)) {
 		$permission = $user->rights->expedition->creer;
 		$permtoedit = $user->rights->expedition->creer;
 		$param = '&id='.$object->id;
-		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 {
 		dol_print_error($db);
 	}

+ 1 - 1
htdocs/expensereport/document.php

@@ -149,7 +149,7 @@ if ($object->id)
 	$permission = $user->rights->expensereport->creer;
 	$permtoedit = $user->rights->expensereport->creer;
 	$param = '&id='.$object->id;
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/fichinter/document.php

@@ -169,7 +169,7 @@ if ($object->id)
 	$permission = $user->rights->ficheinter->creer;
 	$permtoedit = $user->rights->ficheinter->creer;
 	$param = '&id='.$object->id;
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/fourn/commande/document.php

@@ -176,7 +176,7 @@ if ($object->id > 0)
 	$permission = $user->rights->fournisseur->commande->creer;
 	$permtoedit = $user->rights->fournisseur->commande->creer;
 	$param = '&id='.$object->id;
-	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 {
 	header('Location: index.php');
 	exit;

+ 1 - 1
htdocs/holiday/document.php

@@ -300,7 +300,7 @@ if ($object->id)
 	$permission = $user->rights->holiday->write;
 	$permtoedit = $user->rights->holiday->write;
 	$param = '&id='.$object->id;
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/loan/document.php

@@ -157,7 +157,7 @@ if ($object->id)
 	$permission = $user->rights->loan->write;
 	$permtoedit = $user->rights->loan->write;
 	$param = '&id='.$object->id;
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/modulebuilder/template/myobject_document.php

@@ -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);
 }

+ 1 - 1
htdocs/mrp/mo_document.php

@@ -181,7 +181,7 @@ if ($object->id)
 	//$relativepathwithnofile='mo/' . dol_sanitizeFileName($object->id).'/';
 	$relativepathwithnofile = 'mo/'.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);
 }

+ 1 - 1
htdocs/product/document.php

@@ -237,7 +237,7 @@ if ($object->id)
 	print dol_get_fiche_end();
 
 	$param = '&id='.$object->id;
-	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';
 
 
 	// Merge propal PDF document PDF files

+ 1 - 1
htdocs/product/stock/productlot_document.php

@@ -153,7 +153,7 @@ if ($object->id)
 
 	$permission = ($user->rights->produit->creer);
 	$param = '&id='.$object->id;
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/projet/document.php

@@ -156,7 +156,7 @@ if ($object->id > 0)
 	$modulepart = 'project';
 	$permission = ($userWrite > 0);
 	$permtoedit = ($userWrite > 0);
-	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 {
 	dol_print_error('', 'NoRecordFound');
 }

+ 1 - 1
htdocs/projet/tasks/document.php

@@ -314,7 +314,7 @@ if ($object->id > 0)
 	$permission = $user->rights->projet->creer;
 	$permtoedit = $user->rights->projet->creer;
 	$relativepathwithnofile = dol_sanitizeFileName($projectstatic->ref).'/'.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 {
 	header('Location: index.php');
 	exit;

+ 1 - 1
htdocs/recruitment/recruitmentcandidature_document.php

@@ -195,7 +195,7 @@ if ($object->id)
 
 	$relativepathwithnofile = 'recruitmentcandidature/'.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);
 }

+ 1 - 1
htdocs/recruitment/recruitmentjobposition_document.php

@@ -196,7 +196,7 @@ if ($object->id)
 	//$relativepathwithnofile='recruitmentjobposition/' . dol_sanitizeFileName($object->id).'/';
 	$relativepathwithnofile = 'recruitmentjobposition/'.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);
 }

+ 1 - 1
htdocs/resource/document.php

@@ -135,7 +135,7 @@ if ($object->id > 0)
 	$modulepart = 'dolresource';
 	$permission = $user->rights->resource->write;
 
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/salaries/document.php

@@ -127,7 +127,7 @@ if ($object->id)
 	$modulepart = 'salaries';
 	$permission = $user->rights->salaries->write;
 	$param = '&id='.$object->id;
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/societe/document.php

@@ -171,7 +171,7 @@ if ($object->id)
 	$permission = $user->rights->societe->creer;
 	$permtoedit = $user->rights->societe->creer;
 	$param = '&id='.$object->id;
-	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, 0);
 }

+ 1 - 1
htdocs/supplier_proposal/document.php

@@ -165,7 +165,7 @@ if ($object->id > 0)
 	$permission = $user->rights->supplier_proposal->creer;
 	$permtoedit = $user->rights->supplier_proposal->creer;
 	$param = '&id='.$object->id;
-	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 {
 	print $langs->trans("ErrorUnknown");
 }

+ 1 - 1
htdocs/ticket/document.php

@@ -194,7 +194,7 @@ if ($object->id)
   	$permtoedit = $user->rights->ticket->write;
   	$param = '&id='.$object->id;
 
-  	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);
 }

+ 1 - 1
htdocs/user/document.php

@@ -170,7 +170,7 @@ if ($object->id)
 	$permission = $user->rights->user->user->creer;
 	$permtoedit = $user->rights->user->user->creer;
 	$param = '&id='.$object->id;
-	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);
 }