X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Fpublic%2Fcompiler.php;h=468243fc9fa248fe91c653c84f6601e042cd357f;hp=eac227b089bcc636e84cacf4a98b285ba730fd4a;hb=e847eea4a82a7396dd0abf860f9b30d654f38629;hpb=d686c3e22e97dd46ef42bcd0f138c65083f8f232 diff --git a/www/ecrire/public/compiler.php b/www/ecrire/public/compiler.php index eac227b..468243f 100644 --- a/www/ecrire/public/compiler.php +++ b/www/ecrire/public/compiler.php @@ -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;' );