Browse Source

Fix include_once into include for inc.php file. See comment in #16338

Laurent Destailleur 4 years ago
parent
commit
2be6992916
37 changed files with 37 additions and 37 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/contrat/document.php
  15. 1 1
      htdocs/don/document.php
  16. 1 1
      htdocs/expedition/document.php
  17. 1 1
      htdocs/fichinter/document.php
  18. 1 1
      htdocs/fourn/commande/document.php
  19. 1 1
      htdocs/fourn/facture/document.php
  20. 1 1
      htdocs/holiday/document.php
  21. 1 1
      htdocs/loan/document.php
  22. 1 1
      htdocs/modulebuilder/template/myobject_document.php
  23. 1 1
      htdocs/mrp/mo_document.php
  24. 1 1
      htdocs/product/document.php
  25. 1 1
      htdocs/product/stock/productlot_document.php
  26. 1 1
      htdocs/projet/document.php
  27. 1 1
      htdocs/projet/tasks/document.php
  28. 1 1
      htdocs/recruitment/recruitmentcandidature_document.php
  29. 1 1
      htdocs/recruitment/recruitmentjobposition_document.php
  30. 1 1
      htdocs/resource/document.php
  31. 1 1
      htdocs/salaries/document.php
  32. 1 1
      htdocs/societe/document.php
  33. 1 1
      htdocs/supplier_proposal/document.php
  34. 1 1
      htdocs/ticket/document.php
  35. 1 1
      htdocs/user/document.php
  36. 1 1
      htdocs/workstation/workstation_document.php
  37. 1 1
      htdocs/zapier/hook_document.php

+ 1 - 1
htdocs/adherents/document.php

@@ -73,7 +73,7 @@ $upload_dir = $conf->adherent->dir_output."/".get_exdir(0, 0, 0, 1, $object, 'me
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

+ 1 - 1
htdocs/asset/document.php

@@ -81,7 +81,7 @@ if ($id > 0 || !empty($ref)) $upload_dir = $conf->sellyoursaas->multidir_output[
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

+ 1 - 1
htdocs/bom/bom_document.php

@@ -76,7 +76,7 @@ if ($id > 0 || !empty($ref)) $upload_dir = $conf->bom->multidir_output[$object->
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

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

@@ -80,7 +80,7 @@ $modulepart = 'actions';
 /*
  * Actions
  */
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

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

@@ -80,7 +80,7 @@ if ($object->id > 0)
 {
 	$object->fetch_thirdparty();
 	$upload_dir = $conf->propal->multidir_output[$object->entity].'/'.dol_sanitizeFileName($object->ref);
-	include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+	include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 }
 
 

+ 1 - 1
htdocs/commande/document.php

@@ -80,7 +80,7 @@ if ($object->fetch($id))
 	$upload_dir = $conf->commande->multidir_output[$object->entity]."/".dol_sanitizeFileName($object->ref);
 }
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

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

@@ -133,7 +133,7 @@ if (!empty($numref))
 	$upload_dir = $conf->bank->dir_output."/".$id."/statement/".dol_sanitizeFileName($numref);
 }
 $backtopage = $_SERVER['PHP_SELF']."?account=".$id."&num=".$numref;
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

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

@@ -77,7 +77,7 @@ if ($object->id > 0)
 	$upload_dir = $conf->bank->dir_output."/".dol_sanitizeFileName($object->ref);
 }
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

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

@@ -66,7 +66,7 @@ $modulepart = 'banque';
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

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

@@ -71,7 +71,7 @@ $modulepart = 'trip';
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

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

@@ -79,7 +79,7 @@ if ($object->fetch($id))
  * Actions
  */
 
-require_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

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

@@ -77,7 +77,7 @@ $modulepart = 'tax';
  * Actions
  */
 
-require_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 if ($action == 'setlib' && $user->rights->tax->charges->creer)
 {

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

@@ -78,7 +78,7 @@ $modulepart = 'tax-vat';
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 if ($action == 'setlib' && $user->rights->tax->charges->creer)
 {

+ 1 - 1
htdocs/contrat/document.php

@@ -85,7 +85,7 @@ $hookmanager->initHooks(array('contractcard', 'globalcard'));
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

+ 1 - 1
htdocs/don/document.php

@@ -78,7 +78,7 @@ $modulepart = 'don';
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 if ($action == 'classin' && $user->rights->don->creer)
 {

+ 1 - 1
htdocs/expedition/document.php

@@ -76,7 +76,7 @@ if ($object->fetch($id))
 	$upload_dir = $conf->expedition->dir_output."/sending/".dol_sanitizeFileName($object->ref);
 }
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

+ 1 - 1
htdocs/fichinter/document.php

@@ -75,7 +75,7 @@ $modulepart = 'fichinter';
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

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

@@ -78,7 +78,7 @@ $object->fetch_thirdparty();
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

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

@@ -74,7 +74,7 @@ if ($object->fetch($id, $ref))
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

+ 1 - 1
htdocs/holiday/document.php

@@ -72,7 +72,7 @@ $modulepart = 'holiday';
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

+ 1 - 1
htdocs/loan/document.php

@@ -68,7 +68,7 @@ $modulepart = 'loan';
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

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

@@ -121,7 +121,7 @@ $permissiontoadd = $user->rights->mymodule->myobject->write; // Used by the incl
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

+ 1 - 1
htdocs/mrp/mo_document.php

@@ -80,7 +80,7 @@ $result = restrictedArea($user, 'mrp', $object->id, 'mrp_mo', '', 'fk_soc', 'row
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

+ 1 - 1
htdocs/product/document.php

@@ -115,7 +115,7 @@ if (empty($reshook))
 	}
 
 	// Action submit/delete file/link
-	include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+	include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 }
 
 if ($action == 'filemerge')

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

@@ -94,7 +94,7 @@ if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'e
 if (empty($reshook))
 {
 	// Action submit/delete file/link
-	include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+	include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 }
 
 $permtoedit = $user->rights->produit->creer;

+ 1 - 1
htdocs/projet/document.php

@@ -76,7 +76,7 @@ if (!$sortfield) $sortfield = "name";
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

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

@@ -106,7 +106,7 @@ if ($id > 0 || !empty($ref))
 	}
 }
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

+ 1 - 1
htdocs/recruitment/recruitmentcandidature_document.php

@@ -92,7 +92,7 @@ $permissiontoadd = $user->rights->recruitment->recruitmentjobposition->write; //
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

+ 1 - 1
htdocs/recruitment/recruitmentjobposition_document.php

@@ -92,7 +92,7 @@ $permissiontoadd = $user->rights->recruitment->recruitmentjobposition->write; //
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

+ 1 - 1
htdocs/resource/document.php

@@ -72,7 +72,7 @@ $modulepart = 'resource';
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

+ 1 - 1
htdocs/salaries/document.php

@@ -73,7 +73,7 @@ $modulepart = 'salaries';
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

+ 1 - 1
htdocs/societe/document.php

@@ -81,7 +81,7 @@ $hookmanager->initHooks(array('thirdpartydocument', 'globalcard'));
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

+ 1 - 1
htdocs/supplier_proposal/document.php

@@ -69,7 +69,7 @@ if ($object->id > 0)
 {
 	$object->fetch_thirdparty();
 	$upload_dir = $conf->supplier_proposal->dir_output.'/'.dol_sanitizeFileName($object->ref);
-	include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+	include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 }
 
 

+ 1 - 1
htdocs/ticket/document.php

@@ -73,7 +73,7 @@ if ($result < 0) {
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 

+ 1 - 1
htdocs/user/document.php

@@ -106,7 +106,7 @@ $reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action
 if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
 
 if (empty($reshook)) {
-	include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+	include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 }
 
 

+ 1 - 1
htdocs/workstation/workstation_document.php

@@ -113,7 +113,7 @@ $permissiontoadd = $user->rights->workstation->workstation->write; // Used by th
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*

+ 1 - 1
htdocs/zapier/hook_document.php

@@ -78,7 +78,7 @@ if ($id > 0 || !empty($ref)) $upload_dir = $conf->sellyoursaas->multidir_output[
  * Actions
  */
 
-include_once DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
 
 
 /*