mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
PHP 5.6 compatibility
$HTTP_RAW_POST_DATA is now DEPRECATED
Replaced all usages by the recommended file_get_contents("php://input")
This commit is contained in:
parent
d1879c1b9f
commit
b9954f5b2b
|
|
@ -269,5 +269,4 @@ function createSkeleton($authentication,$skeleton)
|
|||
}
|
||||
|
||||
// Return the results.
|
||||
$server->service($HTTP_RAW_POST_DATA);
|
||||
|
||||
$server->service(file_get_contents("php://input"));
|
||||
|
|
|
|||
|
|
@ -590,4 +590,4 @@ function updateActionComm($authentication,$actioncomm)
|
|||
}
|
||||
|
||||
// Return the results.
|
||||
$server->service($HTTP_RAW_POST_DATA);
|
||||
$server->service(file_get_contents("php://input"));
|
||||
|
|
|
|||
|
|
@ -298,7 +298,5 @@ function getCategory($authentication,$id)
|
|||
return $objectresp;
|
||||
}
|
||||
|
||||
|
||||
// Return the results.
|
||||
$server->service($HTTP_RAW_POST_DATA);
|
||||
|
||||
$server->service(file_get_contents("php://input"));
|
||||
|
|
|
|||
|
|
@ -712,6 +712,6 @@ function updateContact($authentication,$contact)
|
|||
|
||||
return $objectresp;
|
||||
}
|
||||
// Return the results.
|
||||
$server->service($HTTP_RAW_POST_DATA);
|
||||
|
||||
// Return the results.
|
||||
$server->service(file_get_contents("php://input"));
|
||||
|
|
|
|||
|
|
@ -587,7 +587,5 @@ function createInvoice($authentication,$invoice)
|
|||
return $objectresp;
|
||||
}
|
||||
|
||||
|
||||
// Return the results.
|
||||
$server->service((isset($HTTP_RAW_POST_DATA)?$HTTP_RAW_POST_DATA:''));
|
||||
|
||||
$server->service(file_get_contents("php://input"));
|
||||
|
|
|
|||
|
|
@ -798,7 +798,5 @@ function validOrder($authentication,$id='')
|
|||
return $objectresp;
|
||||
}
|
||||
|
||||
|
||||
// Return the results.
|
||||
$server->service((isset($HTTP_RAW_POST_DATA)?$HTTP_RAW_POST_DATA:''));
|
||||
|
||||
$server->service(file_get_contents("php://input"));
|
||||
|
|
|
|||
|
|
@ -321,5 +321,4 @@ function getDocument($authentication, $modulepart, $file, $refname='')
|
|||
}
|
||||
|
||||
// Return the results.
|
||||
$server->service($HTTP_RAW_POST_DATA);
|
||||
|
||||
$server->service(file_get_contents("php://input"));
|
||||
|
|
|
|||
|
|
@ -1019,8 +1019,5 @@ function getProductsForCategory($authentication,$id,$lang='')
|
|||
return $objectresp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Return the results.
|
||||
$server->service($HTTP_RAW_POST_DATA);
|
||||
|
||||
$server->service(file_get_contents("php://input"));
|
||||
|
|
|
|||
|
|
@ -457,7 +457,5 @@ function getSupplierInvoicesForThirdParty($authentication,$idthirdparty)
|
|||
return $objectresp;
|
||||
}
|
||||
|
||||
|
||||
// Return the results.
|
||||
$server->service($HTTP_RAW_POST_DATA);
|
||||
|
||||
$server->service(file_get_contents("php://input"));
|
||||
|
|
|
|||
|
|
@ -728,4 +728,4 @@ function getListOfThirdParties($authentication,$filterthirdparty)
|
|||
}
|
||||
|
||||
// Return the results.
|
||||
$server->service($HTTP_RAW_POST_DATA);
|
||||
$server->service(file_get_contents("php://input"));
|
||||
|
|
|
|||
|
|
@ -753,7 +753,5 @@ function setUserPassword($authentication,$shortuser) {
|
|||
return $objectresp;
|
||||
}
|
||||
|
||||
|
||||
// Return the results.
|
||||
$server->service($HTTP_RAW_POST_DATA);
|
||||
|
||||
$server->service(file_get_contents("php://input"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user