1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Downloads: Fixes #2576 - Report Broken Download breadcrumb URLs and cleanup.

This commit is contained in:
Cameron
2017-05-05 10:11:40 -07:00
parent abc1b3408b
commit 963f35ded1
3 changed files with 46 additions and 21 deletions

View File

@@ -781,7 +781,14 @@ class download_shortcodes extends e_shortcode
function sc_download_report_link()
{
$pref = e107::getPref();
return (check_class($pref['download_reportbroken'])) ? "<a href='".e_PLUGIN_ABS."download/download.php?action=report&id=".$this->var['download_id']."'>".LAN_dl_45."</a>" : "";
if(check_class($pref['download_reportbroken']))
{
//$url = e_PLUGIN_ABS."download/download.php?action=report&id=".$this->var['download_id'];
$url = e107::url('download','report', $this->var);
return "<a href='".$url."'>".LAN_dl_45."</a>";
}
return '';
}
function sc_download_view_caption()