mcmahon Done
This commit is contained in:
@@ -22,7 +22,7 @@ fwrite($output, $mcmahonfirst);
|
||||
foreach ($entries as $i => $e) {
|
||||
$rank = $ranks[$e->rank];
|
||||
$id = $e->i + 1;
|
||||
$egd = $e->egd_number ? $e->egd_number : '0';
|
||||
$egd = (strlen($e->egd_number) == 0) ? '0' : $e->egd_number;
|
||||
$out = " <IndividualParticipant typeversion=\"1\">
|
||||
<Id>$id</Id>
|
||||
<Joker>false</Joker>
|
||||
@@ -36,7 +36,7 @@ foreach ($entries as $i => $e) {
|
||||
<Surname><![CDATA[$e->last_name]]></Surname>
|
||||
<GoLevel>$rank</GoLevel>
|
||||
<Rating>$e->rating</Rating>
|
||||
<EgdPin>$e->egd_number</EgdPin>
|
||||
<EgdPin>$egd</EgdPin>
|
||||
<Country>$e->country</Country>
|
||||
<Club>$e->club</Club>
|
||||
</GoPlayer>
|
||||
|
||||
@@ -253,6 +253,7 @@ add_action('admin_post_go_form_export_opengotha', 'go_form_export_opengotha');
|
||||
|
||||
function go_form_export_mcmahon()
|
||||
{
|
||||
global $ranks;
|
||||
include_once 'export/mcmahon.php';
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user