Vote result: Clear markdown tags

This commit is contained in:
Olivier PEREZ 2015-01-03 17:34:15 +01:00
parent c9ea14362d
commit bb3d10583d
2 changed files with 9 additions and 3 deletions

View File

@ -49,8 +49,14 @@ $smarty->assign('lang', $lang);
$smarty->assign('langs', $ALLOWED_LANGUAGES);
$smarty->assign('date_format', $date_format);
function smarty_modifier_poll_url($poll_id, $admin=false){return Utils::getUrlSondage($poll_id, $admin);}
function smarty_modifier_markdown($md) {return Utils::markdown($md);}
function smarty_modifier_poll_url($poll_id, $admin = false) {
return Utils::getUrlSondage($poll_id, $admin);
}
function smarty_modifier_markdown($md, $clear = false) {
return Utils::markdown($md, $clear);
}
// End- Smarty
$connect = new FramaDB(DB_CONNECTION_STRING, DB_USER, DB_PASSWORD);

View File

@ -177,7 +177,7 @@
<ul style="list-style:none">
{foreach $slots as $slot}
{if $best_choices[$i] == $max}
<li><strong>{$slot->title}</strong></li>
<li><strong>{$slot->title|markdown:true}</strong></li>
{/if}
{$i = $i+1}
{/foreach}