1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +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);
$legacy = 'LAN_CONTACT_'.$inc;
$defs[$legacy] = 'LANCONTACT_'.$inc;
// $defs[$legacy] = 'LANCONTACT_'.$inc;
$defs['LANCONTACT_'.$inc] = 'LAN_CONTACT_'.$inc;
}
e107::getLanguage()->bcDefs($defs);

View File

@@ -11,7 +11,22 @@ $head = '<form id="contact-menu" action="'.e_HTTP.'contact.php" method="post" >'
//TODO Security Image.
$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');
$contact_shortcodes = e107::getScBatch('contact');