Fix php 8
This commit is contained in:
parent
0df02e3141
commit
8af81ff89b
@ -189,10 +189,10 @@ function getValidOnlinePaymentMethods($paymentmethod = '')
|
|||||||
*
|
*
|
||||||
* @param string $type Type of URL ('free', 'order', 'invoice', 'contractline', 'member' ...)
|
* @param string $type Type of URL ('free', 'order', 'invoice', 'contractline', 'member' ...)
|
||||||
* @param string $ref Ref of object
|
* @param string $ref Ref of object
|
||||||
* @param int $amount Amount of money to request for
|
* @param int|float $amount Amount of money to request for
|
||||||
* @return string Url string
|
* @return string Url string
|
||||||
*/
|
*/
|
||||||
function showOnlinePaymentUrl($type, $ref, $amount = '9.99')
|
function showOnlinePaymentUrl($type, $ref, $amount = 0)
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
@ -216,10 +216,10 @@ function showOnlinePaymentUrl($type, $ref, $amount = '9.99')
|
|||||||
* @param string $type Type of URL ('free', 'order', 'invoice', 'contractline', 'member' ...)
|
* @param string $type Type of URL ('free', 'order', 'invoice', 'contractline', 'member' ...)
|
||||||
* @param string $ref Ref of object
|
* @param string $ref Ref of object
|
||||||
* @param string $label Text or HTML tag to display, if empty it display the URL
|
* @param string $label Text or HTML tag to display, if empty it display the URL
|
||||||
* @param int $amount Amount of money to request for
|
* @param int|float $amount Amount of money to request for
|
||||||
* @return string Url string
|
* @return string Url string
|
||||||
*/
|
*/
|
||||||
function getHtmlOnlinePaymentLink($type, $ref, $label = '', $amount = '9.99')
|
function getHtmlOnlinePaymentLink($type, $ref, $label = '', $amount = 0)
|
||||||
{
|
{
|
||||||
$url = getOnlinePaymentUrl(0, $type, $ref, $amount);
|
$url = getOnlinePaymentUrl(0, $type, $ref, $amount);
|
||||||
$label = $label ? $label : $url;
|
$label = $label ? $label : $url;
|
||||||
@ -233,12 +233,12 @@ function getHtmlOnlinePaymentLink($type, $ref, $label = '', $amount = '9.99')
|
|||||||
* @param int $mode 0=True url, 1=Url formated with colors
|
* @param int $mode 0=True url, 1=Url formated with colors
|
||||||
* @param string $type Type of URL ('free', 'order', 'invoice', 'contractline', 'member', 'boothlocation', ...)
|
* @param string $type Type of URL ('free', 'order', 'invoice', 'contractline', 'member', 'boothlocation', ...)
|
||||||
* @param string $ref Ref of object
|
* @param string $ref Ref of object
|
||||||
* @param int $amount Amount of money to request for
|
* @param int|float $amount Amount of money to request for
|
||||||
* @param string $freetag Free tag (required and used for $type='free' only)
|
* @param string $freetag Free tag (required and used for $type='free' only)
|
||||||
* @param string $localorexternal 0=Url for browser, 1=Url for external access
|
* @param string $localorexternal 0=Url for browser, 1=Url for external access
|
||||||
* @return string Url string
|
* @return string Url string
|
||||||
*/
|
*/
|
||||||
function getOnlinePaymentUrl($mode, $type, $ref = '', $amount = '9.99', $freetag = 'your_tag', $localorexternal = 1)
|
function getOnlinePaymentUrl($mode, $type, $ref = '', $amount = 0, $freetag = 'your_tag', $localorexternal = 1)
|
||||||
{
|
{
|
||||||
global $conf, $dolibarr_main_url_root;
|
global $conf, $dolibarr_main_url_root;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user