1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

#3680 - Tweak messages when comments are disabled or locked on news items

This commit is contained in:
Tijn Kuyper
2019-10-02 14:57:25 +02:00
parent d3978f3b60
commit 0922eaca21
2 changed files with 10 additions and 3 deletions

View File

@@ -1165,7 +1165,14 @@ class comment
} }
else else
{ {
$comment = "<br /><div style='text-align:center'><b>".COMLAN_328."</b></div>"; if(BOOTSTRAP)
{
$comment = e107::getMessage()->addInfo(COMLAN_328)->render();
}
else
{
$comment = "<br /><div style='text-align:center'><b>".COMLAN_328."</b></div>";
}
} }
$containerTarget = "comments-container-".$frm->name2id($table); $containerTarget = "comments-container-".$frm->name2id($table);

View File

@@ -1301,11 +1301,11 @@ class news_front
{ {
if(BOOTSTRAP) if(BOOTSTRAP)
{ {
return e107::getMessage()->addInfo(COMLAN_328)->render(); return e107::getMessage()->addInfo(LAN_NEWS_13)->render();
} }
else else
{ {
return "<br /><div style='text-align:center'><b>".COMLAN_328."</b></div>"; return "<br /><div style='text-align:center'><b>".LAN_NEWS_13."</b></div>";
} }
} }
} }