From 59a6d4b900b4e40ef0bcdfa59b9d17ffbe66c8c2 Mon Sep 17 00:00:00 2001 From: vgreb Date: Fri, 9 Jan 2026 14:09:27 +0100 Subject: [PATCH] Suppression classe Site --- sources/Afup/Association/Cotisations.php | 3 +- sources/Afup/Bootstrap/Http.php | 4 +-- sources/Afup/Corporate/Site.php | 36 ------------------------ 3 files changed, 3 insertions(+), 40 deletions(-) delete mode 100755 sources/Afup/Corporate/Site.php diff --git a/sources/Afup/Association/Cotisations.php b/sources/Afup/Association/Cotisations.php index 623af14be..c79a1dde8 100644 --- a/sources/Afup/Association/Cotisations.php +++ b/sources/Afup/Association/Cotisations.php @@ -4,7 +4,6 @@ namespace Afup\Site\Association; -use Afup\Site\Corporate\Site; use Afup\Site\Droits; use Afup\Site\Utils\Base_De_Donnees; use Afup\Site\Utils\Mailing; @@ -232,7 +231,7 @@ public function notifierReglementEnLigneAuTresorier(string $cmd, float $total, s $corps = "Bonjour, \n\n"; $corps .= "Une cotisation annuelle AFUP a été réglée.\n\n"; $corps .= "Personne : " . $infos['nom'] . " " . $infos['prenom'] . " (" . $infos['email'] . ")\n"; - $corps .= "URL : " . Site::WEB_PATH . "admin/accounting/membership-fee/list/" . $infos['type'] . "/" . $infos['id'] . "\n"; + $corps .= "URL : /admin/accounting/membership-fee/list/" . $infos['type'] . "/" . $infos['id'] . "\n"; $corps .= "Commande : " . $cmd . "\n"; $corps .= "Total : " . $total . "\n"; $corps .= "Autorisation : " . $autorisation . "\n"; diff --git a/sources/Afup/Bootstrap/Http.php b/sources/Afup/Bootstrap/Http.php index 6c468b7ec..562c85a77 100644 --- a/sources/Afup/Bootstrap/Http.php +++ b/sources/Afup/Bootstrap/Http.php @@ -72,7 +72,7 @@ $smarty->registerPlugin("modifier","floatval", "floatval"); $smarty->assign('url_base', 'https://' . $_SERVER['HTTP_HOST'] . '/'); -$smarty->assign('chemin_template', $serveur . Site::WEB_PATH . 'templates/' . $sous_site . '/'); -$smarty->assign('chemin_javascript', $serveur . Site::WEB_PATH . 'javascript/'); +$smarty->assign('chemin_template', $serveur . '/templates/' . $sous_site . '/'); +$smarty->assign('chemin_javascript', $serveur . '/javascript/'); require_once(__DIR__ . '/commonStart.php'); diff --git a/sources/Afup/Corporate/Site.php b/sources/Afup/Corporate/Site.php deleted file mode 100755 index 6ae452c4e..000000000 --- a/sources/Afup/Corporate/Site.php +++ /dev/null @@ -1,36 +0,0 @@ -bdd = $bdd ?: new _Site_Base_De_Donnees(); - } - - public static function raccourcir($texte, string $separator = '-'): ?string - { - $texte = str_replace('�', 'e', $texte); - $texte = iconv('ISO-8859-15', 'ASCII//TRANSLIT', trim($texte)); - $pattern = ['/[^a-z0-9]/', - '/' . $separator . $separator . '+/', - '/^' . $separator . '/', - '/' . $separator . '$/']; - $replacement = [$separator, $separator, '', '']; - return preg_replace($pattern, $replacement, strtolower($texte)); - } -}