Skip to content
Extraits de code Groupes Projets
Valider 9b5b2407 rédigé par Fil's avatar Fil
Parcourir les fichiers

introduction de la boucle_DEFAUT_dist, qui permet donc de surcharger la...

introduction de la boucle_DEFAUT_dist, qui permet donc de surcharger la definition par defaut des boucles (Stephane Laurent)
parent f299ae7a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -20,8 +20,8 @@ if (!defined("_ECRIRE_INC_VERSION")) return; ...@@ -20,8 +20,8 @@ if (!defined("_ECRIRE_INC_VERSION")) return;
// //
// Boucle standard, sans condition rajoutee // Boucle standard, sans condition rajoutee
// //
// http://doc.spip.org/@boucle_DEFAUT // http://doc.spip.org/@boucle_DEFAUT_dist
function boucle_DEFAUT($id_boucle, &$boucles) { function boucle_DEFAUT_dist($id_boucle, &$boucles) {
global $table_des_tables; global $table_des_tables;
$boucle = &$boucles[$id_boucle]; $boucle = &$boucles[$id_boucle];
$type = $boucle->type_requete; $type = $boucle->type_requete;
......
...@@ -754,6 +754,7 @@ function public_compiler_dist($squelette, $nom, $gram, $sourcefile) { ...@@ -754,6 +754,7 @@ function public_compiler_dist($squelette, $nom, $gram, $sourcefile) {
if (!function_exists($f)) $f = $f.'_dist'; if (!function_exists($f)) $f = $f.'_dist';
// laquelle a une definition par defaut // laquelle a une definition par defaut
if (!function_exists($f)) $f = 'boucle_DEFAUT'; if (!function_exists($f)) $f = 'boucle_DEFAUT';
if (!function_exists($f)) $f = 'boucle_DEFAUT_dist';
$boucles[$id]->return = $boucles[$id]->return =
"function BOUCLE" . ereg_replace("-","_",$id) . $nom . "function BOUCLE" . ereg_replace("-","_",$id) . $nom .
'(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {' . '(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {' .
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter