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

valeurs par defaut, facilite les appels hors calculer_url (ex: les mes_options de spip.net)

parent 432f5408
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -962,7 +962,7 @@ function prepare_recherche($recherche, $primary = 'id_article', $id_table='artic
# calculer le {id_article IN()} et le {... as points}
if (!count($points)) {
$cache[$recherche][$primary] = array("''", 0);
$cache[$recherche][$primary] = array("''", '0');
} else {
$ids = array();
$select = '0';
......
......@@ -596,7 +596,7 @@ function calculer_url ($lien, $texte='', $pour='url') {
}
// http://doc.spip.org/@calculer_url_article_dist
function calculer_url_article_dist($id, $texte, $lien) {
function calculer_url_article_dist($id, $texte='', $lien='') {
$s = spip_query("SELECT titre,lang FROM spip_articles WHERE id_article=$id");
$row = spip_fetch_array($s);
if (!trim($texte))
......@@ -607,7 +607,7 @@ function calculer_url_article_dist($id, $texte, $lien) {
}
// http://doc.spip.org/@calculer_url_rubrique_dist
function calculer_url_rubrique_dist($id, $texte, $lien)
function calculer_url_rubrique_dist($id, $texte='', $lien='')
{
$s = spip_query("SELECT titre,lang FROM spip_rubriques WHERE id_rubrique=$id");
$row = spip_fetch_array($s);
......@@ -620,7 +620,7 @@ function calculer_url_rubrique_dist($id, $texte, $lien)
}
// http://doc.spip.org/@calculer_url_breve_dist
function calculer_url_breve_dist($id, $texte, $lien)
function calculer_url_breve_dist($id, $texte='', $lien='')
{
$s = spip_query("SELECT titre,lang FROM spip_breves WHERE id_breve=$id");
$row = spip_fetch_array($s);
......@@ -633,7 +633,7 @@ function calculer_url_rubrique_dist($id, $texte, $lien)
}
// http://doc.spip.org/@calculer_url_auteur_dist
function calculer_url_auteur_dist($id, $texte, $lien)
function calculer_url_auteur_dist($id, $texte='', $lien='')
{
if ($texte=='') {
$s = spip_query("SELECT nom FROM spip_auteurs WHERE id_auteur=$id");
......@@ -644,7 +644,7 @@ function calculer_url_rubrique_dist($id, $texte, $lien)
}
// http://doc.spip.org/@calculer_url_mot_dist
function calculer_url_mot_dist($id, $texte, $lien)
function calculer_url_mot_dist($id, $texte='', $lien='')
{
if (!trim($texte)) {
$s = spip_query("SELECT titre FROM spip_mots WHERE id_mot=$id");
......@@ -657,7 +657,7 @@ function calculer_url_mot_dist($id, $texte, $lien)
}
// http://doc.spip.org/@calculer_url_document_dist
function calculer_url_document_dist($id, $texte, $lien)
function calculer_url_document_dist($id, $texte='', $lien='')
{
if ($texte=='') {
$s = spip_query("SELECT titre,fichier FROM spip_documents WHERE id_document=$id");
......@@ -672,7 +672,7 @@ function calculer_url_mot_dist($id, $texte, $lien)
}
// http://doc.spip.org/@calculer_url_site_dist
function calculer_url_site_dist($id, $texte, $lien)
function calculer_url_site_dist($id, $texte='', $lien='')
{
# attention dans le cas des sites le lien pointe non pas sur
# la page locale du site, mais directement sur le site lui-meme
......@@ -689,7 +689,7 @@ function calculer_url_site_dist($id, $texte, $lien)
}
// http://doc.spip.org/@calculer_url_forum_dist
function calculer_url_forum_dist($id, $texte, $lien)
function calculer_url_forum_dist($id, $texte='', $lien='')
{
if (!trim($texte)) {
$s = spip_query("SELECT titre FROM spip_forum WHERE id_forum=$id AND 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