[SPIP] +pages auteurs accessibles même si pas d'articles publiés associés
authorLudovic CHEVALIER <ludovic@beurresarrasin.net>
Tue, 25 Oct 2016 11:06:34 +0000 (13:06 +0200)
committerLudovic CHEVALIER <ludovic@beurresarrasin.net>
Tue, 25 Oct 2016 11:06:34 +0000 (13:06 +0200)
www/config/mes_options.php [new file with mode: 0644]

diff --git a/www/config/mes_options.php b/www/config/mes_options.php
new file mode 100644 (file)
index 0000000..27c8ef2
--- /dev/null
@@ -0,0 +1,13 @@
+<?php
+
+if (!defined('_ECRIRE_INC_VERSION')) return;
+
+$GLOBALS['spip_pipeline']['pre_boucle'] .= "|tout_partout";
+// ajouter le critère {tout} aux boucles rubriques si pas de présence d'un critère {statut}
+function tout_partout($boucle){
+        if ($boucle->type_requete == 'auteurs' AND !isset($boucle->modificateur['criteres']['statut']))
+                $boucle->modificateur['criteres']['statut'] = true;
+        return $boucle;
+}
+
+?>