(Fix) Bug in request url

This commit is contained in:
Poppabear
2018-05-11 22:44:24 -04:00
parent fd37ed089c
commit 7c8b4ec06b
+2 -1
View File
@@ -35,7 +35,8 @@ if (!function_exists('hrefTorrentRequest')) {
function hrefTorrentRequest($torrentRequest)
{
$appurl = appurl();
return "{$appurl}/request/{$torrentRequest->slug}.{$torrentRequest->id}";
$slug = str_slug($torrentRequest->name);
return "{$appurl}/request/{$slug}.{$torrentRequest->id}";
}
}