mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Suppress PhanDeprecatedFunction message for stripe
This commit is contained in:
parent
44ef0de1ef
commit
5ee5a4ac2c
|
|
@ -4,6 +4,7 @@
|
|||
* Copyright (C) 2017 Saasprov <saasprov@gmail.com>
|
||||
* Copyright (C) 2018-2022 Thibault FOUCART <support@ptibogxiv.net>
|
||||
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -256,6 +257,7 @@ if (empty($conf->stripeconnect->enabled)) {
|
|||
}
|
||||
}
|
||||
$endpoint->url = $url;
|
||||
// @phan-suppress-next-line PhanDeprecatedFunction
|
||||
$endpoint->save();
|
||||
|
||||
if ($endpoint->status == 'enabled') {
|
||||
|
|
@ -328,6 +330,7 @@ if (empty($conf->stripeconnect->enabled)) {
|
|||
}
|
||||
}
|
||||
$endpoint->url = $url;
|
||||
// @phan-suppress-next-line PhanDeprecatedFunction
|
||||
$endpoint->save();
|
||||
if ($endpoint->status == 'enabled') {
|
||||
print '<a class="reposition" href="'.$_SERVER['PHP_SELF'].'?action=ipn&webhook='.$endpoint->id.'&status=0">';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user