1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

Fixes #3622 - Reported broken downloads reworked

- Moved away from e107_admin/message.php to its own place in the Downloads admin area.
- Notification of broken downloads now controlled by e_notify (see Admin Area > Settings > Notify)
- Updated notification message
- Added e_dashboard addon to show latest status on broken download reports
This commit is contained in:
Tijn Kuyper
2019-10-27 21:40:59 +01:00
parent 01337f5010
commit 1b9251e75f
8 changed files with 133 additions and 17 deletions

View File

@@ -39,7 +39,13 @@ class download_notify extends notify // plugin-folder + '_notify'
$message = LAN_DL_NT_02;
$message .= " <a href=".$download_url.">".$data['download_name']."</a><br>";
$message .= str_replace("[x]", $data['user'], LAN_DL_NT_03)."<br>";
$message .= $data['report_add'];
$message .= $data['report_add']."<br><br>";
$admin_url = SITEURLBASE.e_PLUGIN_ABS."download/admin_download.php?mode=broken&action=list";
$find = array('[', ']');
$replace = array('<a href="'.$admin_url.'">', '</a>');
$message .= str_replace($find, $replace, LAN_DL_NT_04);
}
$this->send('user_download_brokendownload_reported', LAN_DL_NT_01, $message);