return $alpha{$n-1}.$m1.$m2.$m3.$m4;
}
+/* decode the comment */
+function comment_decode($comment) {
+ $comment = urldecode($comment);
+ if (is_utf8($comment)) {
+ return $comment;
+ } else {
+ return utf8_encode($comment);
+ }
+}
+
class PaymentModule extends PLModule
{
$event[$pid]['paid'] += trim($p);
}
}
+ $page->register_modifier('decode_comment', 'decode_comment');
$page->assign('trans', $trans);
$page->assign('event', $event);
}
<a href="mailto:{$p.alias}@{#globals.mail.domain#}">{icon name=email title="mail"}</a>
</td>
<td class="center">{$p.promo}</td>
- <td>{$p.comment|urldecode}</td>
+ <td>{$p.comment|comment_decode}</td>
<td class="right">{$p.montant}</td>
</tr>
{elseif $smarty.foreach.people.first}