1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-19 20:21:51 +02:00

Issue #4372 Make sure shortcode is loaded.

This commit is contained in:
Cameron 2021-02-15 12:32:28 -08:00
parent 80ff17194f
commit 5654f6acbf

View File

@ -252,7 +252,9 @@ class contact_front
message_handler("P_ALERT", $error);
}
}
}
$contact_shortcodes = e107::getScBatch('contact');
if(deftrue('SITECONTACTINFO') || !empty($pref['contact_info']))
{
@ -261,7 +263,7 @@ class contact_front
$CONTACT_INFO = e107::getCoreTemplate('contact','info');
}
$contact_shortcodes = e107::getScBatch('contact');
$contact_shortcodes->wrapper('contact/info');
$text = $tp->parseTemplate($CONTACT_INFO, true, $contact_shortcodes);
$ns->tablerender(LANCONTACT_01, $text,"contact-info");