diff --git a/contact.php b/contact.php index b6ff7f898..c6ce35c09 100644 --- a/contact.php +++ b/contact.php @@ -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); diff --git a/e107_plugins/contact/contact_menu.php b/e107_plugins/contact/contact_menu.php index 4c3fae385..67e11fd95 100644 --- a/e107_plugins/contact/contact_menu.php +++ b/e107_plugins/contact/contact_menu.php @@ -11,7 +11,22 @@ $head = '
' //TODO Security Image. -$foot = '
'; +$foot = ''; + +$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');