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

repare le raccourci [->mot1] qui etait casse (reda) et ajoute un raccourci [->forum1] (Francois)

parent 29d55c8d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -756,10 +756,10 @@ function calculer_url_rubrique($id, $texte='')
function calculer_url_mot($id, $texte='')
{
$lien = generer_url_mot($id);
$row = @spip_fetch_array(spip_query("SELECT titre,lang FROM spip_mots WHERE id_mot=$id"));
$row = @spip_fetch_array(spip_query("SELECT titre FROM spip_mots WHERE id_mot=$id"));
if ($texte=='')
$texte = supprimer_numero($row['titre']);
return array($lien, 'spip_in', $texte, $row['lang']);
return array($lien, 'spip_in', $texte);
}
// http://doc.spip.org/@calculer_url_breve
......@@ -810,6 +810,19 @@ function calculer_url_site($id, $texte='')
return array($lien, 'spip_out', $texte, $row['lang']);
}
// http://doc.spip.org/@calculer_url_site
function calculer_url_forum($id, $texte='')
{
$lien = generer_url_forum($id);
if ($texte=='') {
$row = @spip_fetch_array(spip_query("SELECT titre FROM spip_forum WHERE id_forum=$id AND statut='publie'"));
if ($texte=='')
$texte = $row['titre'];
}
return array($lien, 'spip_in', $texte); # pas de hreflang
}
//
// Tableaux
//
......
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