Browse Source

Utiliser les nouvelles fonctions generer_objet_*

pull/4846/head
Matthieu Marcillaud 9 months ago
parent
commit
7eff4df8a9
  1. 2
      inc/svp_depoter_distant.php
  2. 6
      phpstan-baseline.neon
  3. 2
      prive/objets/liste/depots.html
  4. 2
      prive/objets/liste/paquets.html
  5. 2
      prive/objets/liste/plugins.html
  6. 2
      svp_fonctions.php

2
inc/svp_depoter_distant.php

@ -883,7 +883,7 @@ function svp_actualiser_url_plugins() {
$nb_plugins = count($ids_plugin);
foreach ($ids_plugin as $_id) {
generer_url_entite($_id, 'plugin', '', '', true);
generer_objet_url($_id, 'plugin', '', '', true);
}
}

6
phpstan-baseline.neon

@ -711,7 +711,7 @@ parameters:
path: inc/svp_depoter_distant.php
-
message: "#^Function generer_url_entite not found\\.$#"
message: "#^Function generer_objet_url not found\\.$#"
count: 1
path: inc/svp_depoter_distant.php
@ -1186,12 +1186,12 @@ parameters:
path: svp_fonctions.php
-
message: "#^Function generer_url_ecrire not found\\.$#"
message: "#^Function generer_objet_url not found\\.$#"
count: 1
path: svp_fonctions.php
-
message: "#^Function generer_url_entite not found\\.$#"
message: "#^Function generer_url_ecrire not found\\.$#"
count: 1
path: svp_fonctions.php

2
prive/objets/liste/depots.html

@ -41,7 +41,7 @@
<tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]">
<td class="titre principale">
[(#ENV{affichage}|=={complet}|oui)[(#LOGO_DEPOT|image_reduire{20,26})]]
<a[ href="(#ID_DEPOT|generer_url_entite{depot})"] title="<:svp:bulle_aller_depot:>">
<a[ href="(#ID_DEPOT|generer_objet_url{depot})"] title="<:svp:bulle_aller_depot:>">
[(#TITRE)]
</a>
</td>

2
prive/objets/liste/paquets.html

@ -46,7 +46,7 @@
<td class="intervalle">[(#COMPATIBILITE_SPIP|svp_afficher_intervalle{SPIP}|sinon{--})]</td>
<td class="numero">[(#_liste_paquets:VERSION)]</td>
<td class="lien">
<a[ href="(#ID_DEPOT|generer_url_entite{depot})"] title="<:svp:bulle_aller_depot:>">
<a[ href="(#ID_DEPOT|generer_objet_url{depot})"] title="<:svp:bulle_aller_depot:>">
[(#TITRE)]
</a>
</td>

2
prive/objets/liste/plugins.html

@ -36,7 +36,7 @@
<BOUCLE_liste_plugins(PLUGINS) {id_plugin?}{where?}{id_depot?}{recherche?}{tri #ENV{par, prefixe}, #GET{defaut_tri}}{pagination #ENV{pas, 25}}{fusion prefixe}{doublons}>
<tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]">
<td class="prefixe principale">
<a[ href="(#ID_PLUGIN|generer_url_entite{plugin})"] title="<:svp:bulle_aller_plugin:>">
<a[ href="(#ID_PLUGIN|generer_objet_url{plugin})"] title="<:svp:bulle_aller_plugin:>">
[(#PREFIXE|strtolower)]
</a>
</td>

2
svp_fonctions.php

@ -145,7 +145,7 @@ function svp_afficher_dependances($balise_serialisee, $dependance = 'necessite',
$logiciel = $nom;
} else {
$url = ($lien == 'local')
? generer_url_entite($plugin['id_plugin'], 'plugin')
? generer_objet_url($plugin['id_plugin'], 'plugin')
: "https://plugins.spip.net/{$_plugin['nom']}.html";
$bulle = _T('svp:bulle_aller_plugin');
$logiciel = '<a href="' . $url . '" title="' . $bulle . '">' . $nom . '</a>';

Loading…
Cancel
Save