Browse Source

Utiliser les nouvelles fonctions generer_objet_*

pull/4840/head
Matthieu Marcillaud 11 months ago
parent
commit
2951409b34
  1. 6
      inc/lien.php
  2. 2
      phpstan-baseline.neon

6
inc/lien.php

@ -393,7 +393,7 @@ function nettoyer_raccourcis_typo($texte, $connect = '') {
[$type, , $id, , , , ] = array_pad($match, 7, null);
if ($type) {
$url = generer_url_entite($id, $type, '', '', true);
$url = generer_objet_url($id, $type, '', '', true);
if (is_array($url)) {
[$type, $id] = $url;
}
@ -635,7 +635,7 @@ function traiter_lien_implicite($ref, $texte = '', $pour = 'url', $connect = '')
}
if (!$url) {
$url = generer_url_entite($id, $type, $args, $ancre, $cible);
$url = generer_objet_url($id, $type, $args, $ancre, $cible);
}
if (!$url) {
@ -644,7 +644,7 @@ function traiter_lien_implicite($ref, $texte = '', $pour = 'url', $connect = '')
if (is_array($url)) {
[$type, $id] = array_pad($url, 2, null);
$url = generer_url_entite($id, $type, $args, $ancre, $cible);
$url = generer_objet_url($id, $type, $args, $ancre, $cible);
}
if ($pour === 'url') {

2
phpstan-baseline.neon

@ -76,7 +76,7 @@ parameters:
path: inc/lien.php
-
message: "#^Function generer_url_entite not found\\.$#"
message: "#^Function generer_objet_url not found\\.$#"
count: 3
path: inc/lien.php

Loading…
Cancel
Save