diff --git a/ecrire/public/boucles.php b/ecrire/public/boucles.php index 506e86bbc55711661d6743abb95cc1c84beaf2ec..8555077d695732aa7663a1e55bfd291273a14128 100644 --- a/ecrire/public/boucles.php +++ b/ecrire/public/boucles.php @@ -20,8 +20,8 @@ if (!defined("_ECRIRE_INC_VERSION")) return; // // Boucle standard, sans condition rajoutee // -// http://doc.spip.org/@boucle_DEFAUT -function boucle_DEFAUT($id_boucle, &$boucles) { +// http://doc.spip.org/@boucle_DEFAUT_dist +function boucle_DEFAUT_dist($id_boucle, &$boucles) { global $table_des_tables; $boucle = &$boucles[$id_boucle]; $type = $boucle->type_requete; diff --git a/ecrire/public/compiler.php b/ecrire/public/compiler.php index 0526642937b8cdf1a989d96a6b86d9db7773788a..26dd20ef8c219c6b5837db0a17b6d5b003cbc9f1 100644 --- a/ecrire/public/compiler.php +++ b/ecrire/public/compiler.php @@ -754,6 +754,7 @@ function public_compiler_dist($squelette, $nom, $gram, $sourcefile) { if (!function_exists($f)) $f = $f.'_dist'; // laquelle a une definition par defaut if (!function_exists($f)) $f = 'boucle_DEFAUT'; + if (!function_exists($f)) $f = 'boucle_DEFAUT_dist'; $boucles[$id]->return = "function BOUCLE" . ereg_replace("-","_",$id) . $nom . '(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {' .