1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Closes #3680 - Change comments disabled message to admin debug message

This commit is contained in:
Moc
2021-02-02 19:58:39 +01:00
parent ed94389451
commit 4345df5340
2 changed files with 18 additions and 12 deletions

View File

@@ -188,13 +188,16 @@ class cpage_shortcodes extends e_shortcode
if(e107::getPref('comments_disabled') == 0 && !$comflag)
{
if(defined('BOOTSTRAP') && BOOTSTRAP)
if(ADMIN)
{
return e107::getMessage()->addInfo(LAN_PAGE_17)->render();
}
else
{
return "<br /><div style='text-align:center'><b>".LAN_PAGE_17."</b></div>";
if(defined('BOOTSTRAP') && BOOTSTRAP)
{
return e107::getMessage()->addDebug(LAN_PAGE_17)->render();
}
else
{
return "<br /><div style='text-align:center'><b>".LAN_PAGE_17."</b></div>";
}
}
}