[SPIP] ~maj v3.0.14-->v3.0.17
[ptitvelo/web/www.git] / www / ecrire / public / compiler.php
index eac227b..468243f 100644 (file)
@@ -184,7 +184,7 @@ function calculer_inclure($p, &$boucles, $id_boucle) {
 
        // s'il y a une extension .php, ce n'est pas un squelette
        if (preg_match('/^.+[.]php$/s', $fichier)) {
-               $code = sandbox_composer_inclure_php($fichier, $p);
+               $code = sandbox_composer_inclure_php($fichier, $p, $contexte);
        } else  {
                $_options[] = "\"compil\"=>array($compil)";
                if ($ajax)
@@ -396,7 +396,7 @@ define('CODE_CORPS_BOUCLE', '%s
        }%s
        if (defined("_BOUCLE_PROFILER")
        AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
-               spip_log(intval(1000*$timer)."ms %s","profiler");
+               spip_log(intval(1000*$timer)."ms %s","profiler"._LOG_AVERTISSEMENT);
        return $t0;'
 );