Skip to content
Extraits de code Groupes Projets
Valider ca645377 rédigé par RastaPopoulos's avatar RastaPopoulos Validation de marcimat
Parcourir les fichiers

feat: nouveau pipeline `get_spip_doc`` pour manipuler le résultat de la fonction `get_spip_doc`

Refs: #5774
parent b1aafe50
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -46,6 +46,8 @@ function set_spip_doc(?string $fichier): string {
* @return bool|string
*/
function get_spip_doc(?string $fichier) {
$fichier_demande = $fichier;
if ($fichier === null) {
return false;
}
......@@ -63,6 +65,8 @@ function get_spip_doc(?string $fichier) {
if (!str_starts_with($fichier, (string) _DIR_IMG)) {
$fichier = _DIR_IMG . $fichier;
}
$fichier = pipeline('get_spip_doc', ['args' => ['fichier' => $fichier_demande], 'data' => $fichier]);
// fichier normal
return $fichier;
......
......@@ -83,6 +83,7 @@
<pipeline nom="formulaire_traiter" action="cvtautosave_formulaire_traiter" inclure="inc/cvt_autosave.php" />
<pipeline nom="formulaire_fond" action="" />
<pipeline nom="formulaire_admin" action="" />
<pipeline nom="get_spip_doc" action="" />
<pipeline nom="header_prive" action="" />
<pipeline nom="header_prive_css" action="" />
<pipeline nom="image_preparer_filtre" action="" />
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter