From 677b028e176dbd10f3eeffdd73716f9152108fc0 Mon Sep 17 00:00:00 2001 From: nicod_ <nicod@lerebooteux.fr> Date: Wed, 3 May 2023 16:19:34 +0200 Subject: [PATCH] Inutile --- blocks_pipelines.php | 20 -------------------- paquet.xml | 1 - 2 files changed, 21 deletions(-) diff --git a/blocks_pipelines.php b/blocks_pipelines.php index 04fc808..22ee7ed 100644 --- a/blocks_pipelines.php +++ b/blocks_pipelines.php @@ -78,26 +78,6 @@ function blocks_affiche_enfants($flux) { return $flux; } -/** - * Afficher le nombre d'éléments dans les parents - * - * @pipeline boite_infos - * @param array $flux Données du pipeline - * @return array Données du pipeline - **/ -function blocks_boite_infos($flux) { - if (isset($flux['args']['type']) and isset($flux['args']['id']) and $id = intval($flux['args']['id'])) { - $texte = ''; - if ($flux['args']['type'] == 'blocs_type' and $nb = sql_countsel('spip_blocs', ["statut='publie'", 'id_blocs_type=' . $id])) { - $texte .= '<div>' . singulier_ou_pluriel($nb, 'bloc:info_1_bloc', 'bloc:info_nb_blocs') . "</div>\n"; - } - if ($texte and $p = strpos($flux['data'], '<!--nb_elements-->')) { - $flux['data'] = substr_replace($flux['data'], $texte, $p, 0); - } - } - return $flux; -} - /** * Compter les enfants d'un objet * diff --git a/paquet.xml b/paquet.xml index 412fc64..d53afc5 100644 --- a/paquet.xml +++ b/paquet.xml @@ -25,7 +25,6 @@ <pipeline nom="header_prive" inclure="blocks_pipelines.php"/> <pipeline nom="affiche_enfants" inclure="blocks_pipelines.php"/> <pipeline nom="afficher_contenu_objet" inclure="blocks_pipelines.php"/> - <pipeline nom="boite_infos" inclure="blocks_pipelines.php"/> <pipeline nom="objet_compte_enfants" inclure="blocks_pipelines.php"/> <pipeline nom="optimiser_base_disparus" inclure="blocks_pipelines.php"/> -- GitLab