[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / plugins / zpip_v1 / z_pipelines.php
index 784fceb..8c2dc1e 100644 (file)
@@ -23,6 +23,9 @@ if (defined('_Z_AJAX_PARALLEL_LOAD')) {
         AND $_SERVER['REQUEST_METHOD'] == 'GET'
         ) {
                define('_Z_AJAX_PARALLEL_LOAD_OK',true);
+               if (empty($GLOBALS['marqueur'])) {
+                       $GLOBALS['marqueur'] = "";
+               }
                $GLOBALS['marqueur'] .= ":Zapl";
        }
 }
@@ -69,7 +72,7 @@ function Z_styliser($flux){
        // ou scaffolding ou page automatique les contenus
        if (!$squelette){
 
-               // Cas de figure où on a déclaré type-composition.html dans un bloc, mais où type.html n'existe pas
+               // Cas de figure où on a déclaré type-composition.html dans un bloc, mais où type.html n'existe pas
                if (isset($flux['args']['contexte']['composition'])
                  AND $dir = explode('/',$fond)
                  AND $dir = reset($dir)
@@ -79,7 +82,7 @@ function Z_styliser($flux){
                }
 
                // si on est sur un ?page=XX non trouve
-               elseif ($flux['args']['contexte'][_SPIP_PAGE] == $fond OR $flux['args']['contexte']['type'] == $fond) {
+               elseif ((isset($flux['args']['contexte'][_SPIP_PAGE]) and $flux['args']['contexte'][_SPIP_PAGE] == $fond) OR (isset($flux['args']['contexte']['type']) and $flux['args']['contexte']['type'] == $fond)) {
                        // si c'est un objet spip, associe a une table, utiliser le fond homonyme
                        if (z_scaffoldable($fond)){
                                $flux['data'] = substr(find_in_path("objet.$ext"), 0, - strlen(".$ext"));
@@ -293,7 +296,7 @@ function Z_insert_head($flux){
 // fonction standard de calcul de la balise #INTRODUCTION
 // mais retourne toujours dans un <p> comme propre
 //
-// http://doc.spip.org/@filtre_introduction_dist
+// https://code.spip.net/@filtre_introduction_dist
 if (!function_exists('filtre_introduction')){ // securite
 function filtre_introduction($descriptif, $texte, $longueur, $connect) {
        include_spip('public/composer');