From 5b9126c72eedc98425e4f162e3ad85cd1e34fbfc Mon Sep 17 00:00:00 2001 From: rica-carv Date: Sun, 4 Dec 2016 18:27:58 +0000 Subject: [PATCH] Update download_class.php --- e107_plugins/download/handlers/download_class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_plugins/download/handlers/download_class.php b/e107_plugins/download/handlers/download_class.php index 66d3a105d..ba259c375 100644 --- a/e107_plugins/download/handlers/download_class.php +++ b/e107_plugins/download/handlers/download_class.php @@ -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); }