1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 10:04:35 +02:00

Prevent possible memory overload in Database > Export. Corrected {ALERTS} debug info when using theme.html.

This commit is contained in:
Cameron
2021-05-08 11:53:39 -07:00
parent 80f59e2493
commit c11bd224f8
2 changed files with 12 additions and 3 deletions

View File

@@ -847,7 +847,16 @@ e107::getDebug()->logTime('Render Other');
{
if(deftrue('e_DEBUG'))
{
e107::getMessage()->addDebug("The {ALERTS} shortcode was not found in the \$HEADER or \$FOOTER template. It has been automatically added here. ");
if($noBody === true)
{
e107::getMessage()->addDebug("The {ALERTS} shortcode was not found in theme.html or ".THEME_LAYOUT."_layout.html");
}
else
{
e107::getMessage()->addDebug("The {ALERTS} shortcode was not found in the \$HEADER or \$FOOTER template. It has been automatically added here. ");
}
}
echo e107::getParser()->parseTemplate("{ALERTS}");