mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-16 20:11:01 +01:00
Updated naming format
For exported files
This commit is contained in:
parent
9ed5dac032
commit
ab3812b5a0
@ -755,7 +755,9 @@ class UserController extends Controller
|
|||||||
|
|
||||||
$userData['links'] = $links->toArray();
|
$userData['links'] = $links->toArray();
|
||||||
|
|
||||||
$fileName = 'links.json';
|
$domain = $_SERVER['HTTP_HOST'];
|
||||||
|
$date = date('Y-m-d_H-i-s');
|
||||||
|
$fileName = "links-$domain-$date.json";
|
||||||
$headers = [
|
$headers = [
|
||||||
'Content-Type' => 'application/json',
|
'Content-Type' => 'application/json',
|
||||||
'Content-Disposition' => 'attachment; filename="'.$fileName.'"',
|
'Content-Disposition' => 'attachment; filename="'.$fileName.'"',
|
||||||
@ -780,7 +782,9 @@ class UserController extends Controller
|
|||||||
$userData = $user->toArray();
|
$userData = $user->toArray();
|
||||||
$userData['links'] = $links->toArray();
|
$userData['links'] = $links->toArray();
|
||||||
|
|
||||||
$fileName = 'user_data.json';
|
$domain = $_SERVER['HTTP_HOST'];
|
||||||
|
$date = date('Y-m-d_H-i-s');
|
||||||
|
$fileName = "user_data-$domain-$date.json";
|
||||||
$headers = [
|
$headers = [
|
||||||
'Content-Type' => 'application/json',
|
'Content-Type' => 'application/json',
|
||||||
'Content-Disposition' => 'attachment; filename="'.$fileName.'"',
|
'Content-Disposition' => 'attachment; filename="'.$fileName.'"',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user