@@ -1,3 +1,3 @@ |
||
| 1 | 1 | <?php |
| 2 | - # appel SPIP |
|
| 3 | - include('spip.php'); |
|
| 2 | + # appel SPIP |
|
| 3 | + include('spip.php'); |
|
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | \***************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 14 | - return; |
|
| 14 | + return; |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | include_spip('prive/objets/liste/auteurs_fonctions'); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | \***************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 14 | - return; |
|
| 14 | + return; |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | include_spip('inc/drapeau_edition'); |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | 6 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 7 | - return; |
|
| 7 | + return; |
|
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | include_spip('inc/filtres_selecteur_generique'); |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | \***************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 14 | - return; |
|
| 14 | + return; |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | /** |
@@ -24,20 +24,20 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | function deplacement_restreint($objet, $statut) { |
| 26 | 26 | |
| 27 | - switch ($objet) { |
|
| 28 | - case 'rubrique': |
|
| 29 | - return (!$GLOBALS['connect_toutes_rubriques']); |
|
| 30 | - break; |
|
| 31 | - case 'article': |
|
| 32 | - case 'site': |
|
| 33 | - case 'syndic': |
|
| 34 | - case 'breve': |
|
| 35 | - return ($statut == 'publie'); |
|
| 36 | - break; |
|
| 37 | - default: |
|
| 38 | - return ($statut ? $statut == 'publie' : false); |
|
| 39 | - break; |
|
| 40 | - } |
|
| 27 | + switch ($objet) { |
|
| 28 | + case 'rubrique': |
|
| 29 | + return (!$GLOBALS['connect_toutes_rubriques']); |
|
| 30 | + break; |
|
| 31 | + case 'article': |
|
| 32 | + case 'site': |
|
| 33 | + case 'syndic': |
|
| 34 | + case 'breve': |
|
| 35 | + return ($statut == 'publie'); |
|
| 36 | + break; |
|
| 37 | + default: |
|
| 38 | + return ($statut ? $statut == 'publie' : false); |
|
| 39 | + break; |
|
| 40 | + } |
|
| 41 | 41 | |
| 42 | - return false; |
|
| 42 | + return false; |
|
| 43 | 43 | } |
@@ -1,14 +1,14 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 4 | - return; |
|
| 4 | + return; |
|
| 5 | 5 | } |
| 6 | 6 | |
| 7 | 7 | function job_queue_block_and_watch() { |
| 8 | - // bloquer la queue sur ce hit |
|
| 9 | - // pour avoir coherence entre l'affichage de la liste de jobs |
|
| 10 | - // et les jobs en base en fin de hit |
|
| 11 | - define('_DEBUG_BLOCK_QUEUE', true); |
|
| 12 | - include_spip('inc/genie'); |
|
| 13 | - genie_queue_watch_dist(); |
|
| 8 | + // bloquer la queue sur ce hit |
|
| 9 | + // pour avoir coherence entre l'affichage de la liste de jobs |
|
| 10 | + // et les jobs en base en fin de hit |
|
| 11 | + define('_DEBUG_BLOCK_QUEUE', true); |
|
| 12 | + include_spip('inc/genie'); |
|
| 13 | + genie_queue_watch_dist(); |
|
| 14 | 14 | } |
@@ -1,21 +1,21 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 4 | - return; |
|
| 4 | + return; |
|
| 5 | 5 | } |
| 6 | 6 | |
| 7 | 7 | include_spip('inc/rechercher'); |
| 8 | 8 | include_spip('base/abstract_sql'); |
| 9 | 9 | |
| 10 | 10 | function inclure_liste_recherche_par_id($table, $id, $statut, $env) { |
| 11 | - if (is_string($env)) { |
|
| 12 | - $env = unserialize($env); |
|
| 13 | - } |
|
| 14 | - $env[id_table_objet($table)] = $id; |
|
| 15 | - if ($statut) { |
|
| 16 | - $env['statut'] = $statut; |
|
| 17 | - } |
|
| 18 | - unset($env['recherche']); |
|
| 11 | + if (is_string($env)) { |
|
| 12 | + $env = unserialize($env); |
|
| 13 | + } |
|
| 14 | + $env[id_table_objet($table)] = $id; |
|
| 15 | + if ($statut) { |
|
| 16 | + $env['statut'] = $statut; |
|
| 17 | + } |
|
| 18 | + unset($env['recherche']); |
|
| 19 | 19 | |
| 20 | - return recuperer_fond("prive/objets/liste/$table", $env); |
|
| 20 | + return recuperer_fond("prive/objets/liste/$table", $env); |
|
| 21 | 21 | } |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 4 | - return; |
|
| 4 | + return; |
|
| 5 | 5 | } |
| 6 | 6 | |
| 7 | 7 | include_spip('inc/bandeau'); |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | if (!defined('_ECRIRE_INC_VERSION')) { |
| 4 | - return; |
|
| 4 | + return; |
|
| 5 | 5 | } |
| 6 | 6 | |
| 7 | 7 | include_spip('inc/presentation_mini'); |