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

BC Fix for contact LANs.

This commit is contained in:
Cameron
2021-04-12 14:31:27 -07:00
parent 8f7ab86413
commit ee464286e0
2 changed files with 18 additions and 3 deletions

View File

@@ -25,8 +25,8 @@ class contact_front
{ {
$inc = $tp->leadingZeros($val,2); $inc = $tp->leadingZeros($val,2);
$legacy = 'LAN_CONTACT_'.$inc; $legacy = 'LAN_CONTACT_'.$inc;
$defs[$legacy] = 'LANCONTACT_'.$inc; // $defs[$legacy] = 'LANCONTACT_'.$inc;
$defs['LANCONTACT_'.$inc] = 'LAN_CONTACT_'.$inc;
} }
e107::getLanguage()->bcDefs($defs); e107::getLanguage()->bcDefs($defs);

View File

@@ -13,6 +13,21 @@ $head = '<form id="contact-menu" action="'.e_HTTP.'contact.php" method="post" >'
$foot = '</form>'; $foot = '</form>';
$range = range(00,24);
$tp = e107::getParser();
$defs = array();
foreach($range as $val)
{
$inc = $tp->leadingZeros($val,2);
$legacy = 'LAN_CONTACT_'.$inc;
// $defs[$legacy] = 'LANCONTACT_'.$inc;
$defs['LANCONTACT_'.$inc] = 'LAN_CONTACT_'.$inc;
}
e107::getLanguage()->bcDefs($defs);
$template = e107::getCoreTemplate('contact','menu'); $template = e107::getCoreTemplate('contact','menu');
$contact_shortcodes = e107::getScBatch('contact'); $contact_shortcodes = e107::getScBatch('contact');
$text = e107::getParser()->parseTemplate($head. $template . $foot, true, $contact_shortcodes); $text = e107::getParser()->parseTemplate($head. $template . $foot, true, $contact_shortcodes);