1
0
mirror of https://github.com/e107inc/e107.git synced 2025-05-05 03:38:29 +02:00

Update download_class.php

This commit is contained in:
rica-carv 2016-12-04 18:27:58 +00:00 committed by GitHub
parent 8820323444
commit 5b9126c72e

View File

@ -579,6 +579,8 @@ class download
if($filetotal)
{
$caption = varset($DOWNLOAD_LIST_CAPTION) ? $tp->parseTemplate($DOWNLOAD_LIST_CAPTION, TRUE, $sc) : LAN_PLUGIN_DOWNLOAD_NAME;
// Only show list if some files in it
$dl_text .= $tp->parseTemplate($DOWNLOAD_LIST_TABLE_START, TRUE, $sc);
@ -611,8 +613,6 @@ class download
}
$dl_text .= $tp->parseTemplate($this->templateFooter, TRUE, $sc);
$caption = varset($DOWNLOAD_LIST_CAPTION) ? $tp->parseTemplate($DOWNLOAD_LIST_CAPTION, TRUE, $sc) : LAN_PLUGIN_DOWNLOAD_NAME;
$text .= $ns->tablerender($caption, $dl_text, 'download-list', true);
}