1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 07:36:32 +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,18 +269,20 @@ class download
{ {
$template = e107::getTemplate('download','download','categories'); $template = e107::getTemplate('download','download','categories');
$DOWNLOAD_CAT_CAPTION = $template['caption'];
$DOWNLOAD_CAT_TABLE_START = varset($template['start']); $DOWNLOAD_CAT_TABLE_START = varset($template['start']);
$DOWNLOAD_CAT_PARENT_TABLE = $template['parent']; $DOWNLOAD_CAT_PARENT_TABLE = $template['parent'];
$DOWNLOAD_CAT_CHILD_TABLE = $template['child']; $DOWNLOAD_CAT_CHILD_TABLE = $template['child'];
$DOWNLOAD_CAT_SUBSUB_TABLE = $template['subchild']; $DOWNLOAD_CAT_SUBSUB_TABLE = $template['subchild'];
$DOWNLOAD_CAT_TABLE_END = varset($template['end']); $DOWNLOAD_CAT_TABLE_END = varset($template['end']);
// $DL_VIEW_NEXTPREV = varset($template['nextprev']); // $DL_VIEW_NEXTPREV = varset($template['nextprev']);
// $DL_VIEW_PAGETITLE = varset($template['pagetitle']); // $DL_VIEW_PAGETITLE = varset($template['pagetitle']);
// $DL_VIEW_CAPTION = varset($template['caption'],"{DOWNLOAD_VIEW_CAPTION}"); // $DL_VIEW_CAPTION = varset($template['caption'],"{DOWNLOAD_VIEW_CAPTION}");
} }
else // Legacy v1.x else // Legacy v1.x
{ {
$DOWNLOAD_CAT_CAPTION = null;
$DOWNLOAD_CAT_TABLE_START = null; $DOWNLOAD_CAT_TABLE_START = null;
$DOWNLOAD_CAT_PARENT_TABLE = null; $DOWNLOAD_CAT_PARENT_TABLE = null;
$DOWNLOAD_CAT_CHILD_TABLE = null; $DOWNLOAD_CAT_CHILD_TABLE = null;