Skip to content

Commit

Permalink
Use api for csv separator and newline
Browse files Browse the repository at this point in the history
  • Loading branch information
vboctor committed Mar 7, 2016
1 parent dd91ca4 commit 08e4f84
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions billing_export_to_csv.php
Expand Up @@ -43,7 +43,8 @@
$f_from = gpc_get_string( 'from' );
$f_to = gpc_get_string( 'to' );

$t_separator = ',';
$t_new_line = csv_get_newline();
$t_separator = csv_get_separator();

billing_ensure_reporting_access( $f_project_id );

Expand Down Expand Up @@ -74,7 +75,7 @@
}

echo csv_escape_string( 'note' );
echo "\n";
echo $t_new_line;

foreach( $t_billing_rows as $t_billing ) {
echo csv_escape_string( bug_format_id( $t_billing['bug_id'] ) ) . $t_separator;
Expand All @@ -96,7 +97,7 @@
}

echo csv_escape_string( $t_billing['note'] );
echo "\n";
echo $t_new_line;
}


0 comments on commit 08e4f84

Please sign in to comment.