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:
@@ -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);
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user