mirror of
https://github.com/djav1985/v-wordpress-plugin-updater.git
synced 2025-10-03 16:20:58 +08:00
modified: update-api/app/Models/HostsModel.php
modified: update-api/app/Models/LogModel.php
This commit is contained in:
parent
68a2e1beb3
commit
9a326f1049
2 changed files with 6 additions and 6 deletions
|
@ -77,9 +77,9 @@ class HostsModel
|
|||
|
||||
// also remove from log files
|
||||
$log_files = [
|
||||
'plugin.log',
|
||||
'theme.log',
|
||||
];
|
||||
'plugin.log',
|
||||
'theme.log',
|
||||
];
|
||||
$safe_domain = htmlspecialchars($domain, ENT_QUOTES, 'UTF-8');
|
||||
foreach ($log_files as $log_file) {
|
||||
$log_file_path = LOG_DIR . "/$log_file";
|
||||
|
|
|
@ -34,9 +34,9 @@ class LogModel
|
|||
foreach ($log_array as $entry) {
|
||||
list($domain, $date, $status) = explode(' ', $entry, 3);
|
||||
$log_by_domain[$domain] = [
|
||||
'date' => $date,
|
||||
'status' => $status,
|
||||
];
|
||||
'date' => $date,
|
||||
'status' => $status,
|
||||
];
|
||||
}
|
||||
|
||||
ob_start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue