|
@@ -51,7 +51,7 @@ else : |
|
|
echo "No posts matched the query"; |
|
|
echo "No posts matched the query"; |
|
|
endif; |
|
|
endif; |
|
|
|
|
|
|
|
|
if ( $_GET['format'] == 'csv' ) { |
|
|
|
|
|
|
|
|
if ( isset( $_GET['format'] ) && $_GET['format'] == 'csv' ) { |
|
|
header( "Content-Type: text/csv" ); |
|
|
header( "Content-Type: text/csv" ); |
|
|
header('Content-Disposition: attachment; filename="localweblist.csv"'); |
|
|
header('Content-Disposition: attachment; filename="localweblist.csv"'); |
|
|
$fp = fopen('php://output', 'w'); |
|
|
$fp = fopen('php://output', 'w'); |
|
|