Objet : devel-adl
Archives de la liste
- From: svn AT agendadulibre.org
- To: devel AT agendadulibre.org
- Subject: [Devel] r281 - branches/dui
- Date: Sun, 1 Jul 2007 21:40:27 +0200 (CEST)
- List-archive: <http://lolut.utbm.info/pipermail/devel>
- List-id: Developpement de l'Agenda du Libre <devel.agendadulibre.org>
Author: ldayot
Date: Sun Jul 1 21:40:25 2007
New Revision: 281
Log:
Correction d'un bug dans le controle des caracteres autorises pour les
tags.
Activation des liens depuis la liste des tags d'un evenement.
Modified:
branches/dui/funcs.inc.php
branches/dui/moderatetags.php
Modified: branches/dui/funcs.inc.php
==============================================================================
--- branches/dui/funcs.inc.php (original)
+++ branches/dui/funcs.inc.php Sun Jul 1 21:40:25 2007
@@ -669,9 +669,19 @@
{
if ($cat != "-1")
if ($cat_id==0)
- $last_line = "<p>". _("Tags"). " : ". implode(", ", $result_tags).
"</p>";
+ {
+ $last_line = "<p>". _("Tags"). " : ";
+ foreach ($result_tags as $tag)
+ $last_line .= "<a href=\"listevents.php?tag=$tag\">$tag</a> ";
+ $last_line .= "</p>";
+ }
else
- $result .= "<p>". $cat. " : ". implode(", ", $result_tags).
"</p>";
+ {
+ $result .= "<p>". $cat. " : ";
+ foreach ($result_tags as $tag)
+ $result .= "<a href=\"listevents.php?tag=$tag\">$tag</a> ";
+ $result .= "</p>";
+ }
$cat = $rec->category;
unset($result_tags);
$result_tags = array();
@@ -681,9 +691,19 @@
}
if ($cat != "-1")
if ($cat_id==0)
- $last_line = "<p>". _("Tags"). " : ". implode(", ", $result_tags).
"</p>";
+ {
+ $last_line = "<p>". _("Tags"). " : ";
+ foreach ($result_tags as $tag)
+ $last_line .= "<a href=\"listevents.php?tag=$tag\">$tag</a> ";
+ $last_line .= "</p>";
+ }
else
- $result .= "<p>". $cat. " : ". implode(", ", $result_tags). "</p>";
+ {
+ $result .= "<p>". $cat. " : ";
+ foreach ($result_tags as $tag)
+ $result .= "<a href=\"listevents.php?tag=$tag\">$tag</a> ";
+ $result .= "</p>";
+ }
if (isset($last_line))
$result .= $last_line;
Modified: branches/dui/moderatetags.php
==============================================================================
--- branches/dui/moderatetags.php (original)
+++ branches/dui/moderatetags.php Sun Jul 1 21:40:25 2007
@@ -118,7 +118,7 @@
if (strlen($tagCat["name"])<4)
return error(_("Intitulé indispensable d'au moins 4
caractères"));
- if (! ereg("^[a-z0-9\-]*$", $tagCat))
+ if (! ereg("^[a-z0-9\-]*$", $tagCat["name"]))
return error("L'intitulé ne doit contenir que des lettres
minuscules, ".
"des chiffres ou des tirets.");
- [Devel] r281 - branches/dui, svn, 01/07/2007
Archives gérées par MHonArc 2.6.16.