1
0
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:
Cameron
2014-02-07 17:57:06 -08:00
parent f3ae51e037
commit ef4ced985a
4 changed files with 88 additions and 26 deletions

View File

@@ -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))
{