1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Merge pull request #5453 from rica-carv/download-missing-cat-caption-var

Download missing cat caption var defintion from template
This commit is contained in:
Cameron
2025-03-28 15:48:50 -07:00
committed by GitHub

View File

@@ -269,6 +269,7 @@ class download
{
$template = e107::getTemplate('download','download','categories');
$DOWNLOAD_CAT_CAPTION = $template['caption'];
$DOWNLOAD_CAT_TABLE_START = varset($template['start']);
$DOWNLOAD_CAT_PARENT_TABLE = $template['parent'];
$DOWNLOAD_CAT_CHILD_TABLE = $template['child'];
@@ -281,6 +282,7 @@ class download
}
else // Legacy v1.x
{
$DOWNLOAD_CAT_CAPTION = null;
$DOWNLOAD_CAT_TABLE_START = null;
$DOWNLOAD_CAT_PARENT_TABLE = null;
$DOWNLOAD_CAT_CHILD_TABLE = null;