Mercurial > defr > DualBlog
diff includes/class.post.php @ 58:ded2849cf38c
On rend le validator HTML5 content avec ces quelques changements.
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Wed, 06 Feb 2008 18:15:17 +0100 |
parents | ec0c926a78a6 |
children | 25c6e59f019e |
line wrap: on
line diff
--- a/includes/class.post.php Tue Jan 29 14:34:03 2008 +0100 +++ b/includes/class.post.php Wed Feb 06 18:15:17 2008 +0100 @@ -56,7 +56,11 @@ if($nbTags > 0) { while(0 !== ($tag = $db->GetRow(2))) - $tags .= " <a href='/blog/tags/{$tag['Tag']}'>{$tag['Tag']}</a> |"; + { + $tags .= sprintf("<a href='%s'>%s</a> |", + '/blog/tags/' . urlencode($tag['Tag']), + $tag['Tag']); + } $tags = substr($tags, 0, -1); $this->tags = $this->tpl->getDocumentFragment(); $this->tags->appendXML($tags);