From 9b5b240732e8e2154c80dec7bc0886dd7084537a Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Sun, 10 Sep 2006 21:38:43 +0000 Subject: [PATCH] introduction de la boucle_DEFAUT_dist, qui permet donc de surcharger la definition par defaut des boucles (Stephane Laurent) --- ecrire/public/boucles.php | 4 ++-- ecrire/public/compiler.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ecrire/public/boucles.php b/ecrire/public/boucles.php index 506e86bbc5..8555077d69 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 0526642937..26dd20ef8c 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) {' . -- GitLab