Баг :Does not work parsing BBCode in comments
Статус :Исправлено
Серьёзность :Нормальное
Репортер :Amro 10-11-12 20:34
Обновил :Amro 28-06-13 15:01
КатегорияGeneral
Версия :173
Частота :Постоянно
Пофиксено в :173
Детали :

Does not work parsing BBCode in comments

fix in functions.php -> sed_build_comments():

1.)

replace:

global $db_com, $db_users, $db_pages, $cfg, $usr, $L, $sys, $skin; 

to

global $db_com, $db_users, $db_pages, $cfg, $usr, $L, $sys, $skin, $ishtml; 

2)

replace

 $sql = sed_sql_query("INSERT INTO $db_com (com_code, com_author, com_authorid, com_authorip, com_text, com_text_ishtml, com_date) VALUES ('".sed_sql_prep($code)."', '".sed_sql_prep($usr['name'])."', ".(int)$usr['id'].", '".$usr['ip']."', '".sed_sql_prep($rtext)."', 1, ".(int)$sys['now_offset'].")"); 

on

 $sql = sed_sql_query("INSERT INTO $db_com (com_code, com_author, com_authorid, com_authorip, com_text, com_text_ishtml, com_date) VALUES ('".sed_sql_prep($code)."', '".sed_sql_prep($usr['name'])."', ".(int)$usr['id'].", '".$usr['ip']."', '".sed_sql_prep($rtext)."', ".(int)$ishtml.", ".(int)$sys['now_offset'].")"); 

3)

replace

$sql3 = sed_sql_query("UPDATE $db_com SET com_text = '".sed_sql_prep($rtext)."' WHERE com_id='$b'"); 

on

$sql3 = sed_sql_query("UPDATE $db_com SET com_text = '".sed_sql_prep($rtext)."', com_text_ishtml = ".(int)$ishtml." WHERE com_id='$b'"); 
Затронутые части :functions.php

История и комментарии :

Нет записей