[spip-dev] Un bug pour les mots-clés ?

Bonjour,

je viens d'installer SPIP 1.4pr1

Je crois avoir décelé une erreur dans inc-calcul-squel.php3 :

au lieu de (lignes 431 à 445) :

                    // Selection du classement
                    else if (ereg('^par[[:space:]]+([^}]*)$', $param,
$match)) {
                        if ($match[1] == 'hasard') {
                            $req_select[] = "MOD($table.$id_objet *
UNIX_TIMESTAMP(), 32767) & UNIX_TIMESTAMP() AS alea";
                            $req_order = " ORDER BY alea";
                        }
                        else if ($match[1] == 'titre_mot'){
                            $req_order= " ORDER BY rel_mots.titre";
                        }
                        else if ($match[1] == 'type_mot'){
                            $req_order= " ORDER BY rel_mots.type";
                        }
                        else if ($match[1] == 'points'){
                            $req_order= " ORDER BY points";
                        }

il faudrait :

                    // Selection du classement
                    else if (ereg('^par[[:space:]]+([^}]*)$', $param,
$match)) {
                        if ($match[1] == 'hasard') {
                            $req_select[] = "MOD($table.$id_objet *
UNIX_TIMESTAMP(), 32767) & UNIX_TIMESTAMP() AS alea";
                            $req_order = " ORDER BY alea";
                        }
                        else if ($match[1] == 'titre_mot'){
                            $req_order= " ORDER BY mots.titre";
                        }
                        else if ($match[1] == 'type_mot'){
                            $req_order= " ORDER BY mots.type";
                        }
                        else if ($match[1] == 'points'){
                            $req_order= " ORDER BY points";
                        }

Soit "mots" au lieu de "rel_mots" aux lignes 438 et 441.

Est-ce OK ?
ça y est, je suis un bêta-testeur ?... :slight_smile:

Rémi.