1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 09:04:38 +02:00

Download URL fixes

This commit is contained in:
Cameron
2017-04-13 09:43:29 -07:00
parent f8ba98d845
commit b38183035d
4 changed files with 13 additions and 12 deletions

View File

@@ -535,9 +535,10 @@ class download
}
$sql = e107::getDb();
$sql = e107::getDb('dlrow');
$tp = e107::getParser();
$ns = e107::getRender();
$pref = e107::getPref();
// $sc = new download_shortcodes;
$sc = e107::getScBatch('download',true);
@@ -688,10 +689,12 @@ class download
$dlft = ($filetotal < $this->qry['view'] ? $filetotal: $this->qry['view']);
$current_row = 1;
while($dlrow = $sql->fetch())
{
$sc->setVars($dlrow);
$sc->setVars($dlrow);
$agreetext = $tp->toHTML($pref['agree_text'], TRUE, 'DESCRIPTION');
$current_row = ($current_row) ? 0: 1;
// Alternating CSS for each row.(backwards compatible)
@@ -700,9 +703,6 @@ class download
$dltdownloads += $dlrow['download_requested'];
$dl_text .= $tp->parseTemplate($template, TRUE, $sc);
}
$dl_text .= $tp->parseTemplate($DOWNLOAD_LIST_TABLE_END, TRUE, $sc);