Skip to content
Extraits de code Groupes Projets
Valider 69af5785 rédigé par Antoine Pitrou's avatar Antoine Pitrou
Parcourir les fichiers

Correction bug signalé par Fil (en aveugle, je n'ai pas de quoi tester ;-)

parent 12a0242e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -329,7 +329,6 @@ function parser_boucle($texte, $id_parent) { ...@@ -329,7 +329,6 @@ function parser_boucle($texte, $id_parent) {
// Traitement general des relations externes // Traitement general des relations externes
if ($s = $tables_relations[$type][$col]) { if ($s = $tables_relations[$type][$col]) {
$col_table = "rel_$type"; $col_table = "rel_$type";
//$col_table = $s;
$req_from[] = "$s AS $col_table"; $req_from[] = "$s AS $col_table";
$req_where[] = "$table.$id_objet=$col_table.$id_objet"; $req_where[] = "$table.$id_objet=$col_table.$id_objet";
$req_group = " GROUP BY $table.$id_objet"; $req_group = " GROUP BY $table.$id_objet";
...@@ -349,13 +348,6 @@ function parser_boucle($texte, $id_parent) { ...@@ -349,13 +348,6 @@ function parser_boucle($texte, $id_parent) {
$req_group = " GROUP BY $table.$id_objet"; $req_group = " GROUP BY $table.$id_objet";
$flag_lien = true; $flag_lien = true;
} }
/* else if ($type == 'mots' AND ($col == 'id_syndic' OR $col == 'id_forum')) {
$col_table = 'spip_'.$type.'_'.substr($col, 3);
$req_from[] = $col_table;
$req_where[] = "$table.$id_objet=$col_table.$id_objet";
$req_group = " GROUP BY $table.$id_objet";
$flag_lien = true;
}*/
// Cas particulier : selection des documents selon l'extension // Cas particulier : selection des documents selon l'extension
else if ($type == 'documents' AND $col == 'extension') { else if ($type == 'documents' AND $col == 'extension') {
...@@ -428,10 +420,10 @@ function parser_boucle($texte, $id_parent) { ...@@ -428,10 +420,10 @@ function parser_boucle($texte, $id_parent) {
$req_order = " ORDER BY alea"; $req_order = " ORDER BY alea";
} }
else if ($match[1] == 'titre_mot'){ else if ($match[1] == 'titre_mot'){
$req_order= " ORDER BY spip_mots.titre"; $req_order= " ORDER BY rel_mots.titre";
} }
else if ($match[1] == 'type_mot'){ else if ($match[1] == 'type_mot'){
$req_order= " ORDER BY spip_mots.type"; $req_order= " ORDER BY rel_mots.type";
} }
else if ($match[1] == 'points'){ else if ($match[1] == 'points'){
$req_order= " ORDER BY points"; $req_order= " ORDER BY points";
...@@ -485,7 +477,6 @@ function parser_boucle($texte, $id_parent) { ...@@ -485,7 +477,6 @@ function parser_boucle($texte, $id_parent) {
break; break;
case 'forums': case 'forums':
/* $forums_publics = lire_meta("forums_publics"); */
// Par defaut, selectionner uniquement les forums sans pere // Par defaut, selectionner uniquement les forums sans pere
if (!$plat) $req_where[] = "$table.id_parent=0"; if (!$plat) $req_where[] = "$table.id_parent=0";
$req_where[] = "$table.statut='publie'"; $req_where[] = "$table.statut='publie'";
......
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