mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Update Ajax.php
This commit is contained in:
parent
64c54524eb
commit
680ff29008
1 changed files with 10 additions and 3 deletions
13
src/Ajax.php
13
src/Ajax.php
|
@ -178,13 +178,20 @@ class Ajax
|
|||
|
||||
// Show ajax action in console log
|
||||
if (!empty($_COOKIE['explain'])) {
|
||||
$console_log = [];
|
||||
$console_log_request = $console_log_response = [];
|
||||
|
||||
foreach ($this->request as $key => $value) {
|
||||
$console_log[$key] = $value;
|
||||
$console_log_request[$key] = $value;
|
||||
}
|
||||
|
||||
$this->response['console_log'] = $console_log;
|
||||
foreach ($this->response as $key => $value) {
|
||||
$console_log_response[$key] = $value;
|
||||
}
|
||||
|
||||
$this->response['console_log'] = [
|
||||
'request' => $console_log_request,
|
||||
'response' => $console_log_response,
|
||||
];
|
||||
}
|
||||
|
||||
if (Dev::sqlDebugAllowed()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue