mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 17:44:37 +02:00
Fix for broken download links when using SEF Urls. Cleaned up next/prev template. {GLYPH} now uses 2.x format. eg {GLYPH: type=download&size=2x}
This commit is contained in:
@@ -11,7 +11,10 @@ e107::lan('download','download');
|
||||
$log = e107::getAdminLog();
|
||||
$id = FALSE;
|
||||
|
||||
if (!is_numeric(e_QUERY))
|
||||
|
||||
|
||||
|
||||
if (!is_numeric(e_QUERY) && empty($_GET['id']))
|
||||
{
|
||||
if ($sql->select('download', 'download_id', "download_url='".$tp->toDB(e_QUERY)."'"))
|
||||
{
|
||||
@@ -90,6 +93,14 @@ else
|
||||
$type = "image";
|
||||
}
|
||||
|
||||
if(vartrue($_GET['id'])) // SEF URL
|
||||
{
|
||||
$id = intval($_GET['id']);
|
||||
$type = 'file';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (preg_match("#.*\.[a-z,A-Z]{3,4}#", e_QUERY))
|
||||
{
|
||||
|
Reference in New Issue
Block a user