From 7e61dda7483ec338ccab926e7940f584c0e94201 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 27 Oct 2013 13:27:08 -0700 Subject: [PATCH] Fix for legacy download-template header and footer. --- e107_plugins/download/handlers/download_class.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/e107_plugins/download/handlers/download_class.php b/e107_plugins/download/handlers/download_class.php index 92b002ae0..e73a29c27 100644 --- a/e107_plugins/download/handlers/download_class.php +++ b/e107_plugins/download/handlers/download_class.php @@ -25,8 +25,16 @@ class download require_once(e_PLUGIN."download/download_shortcodes.php"); - $this->templateHeader = e107::getTemplate('download','download','header'); - $this->templateFooter = e107::getTemplate('download','download','footer'); + if(deftrue('BOOTSTRAP')) // v2.x + { + $this->templateHeader = e107::getTemplate('download','download','header'); + $this->templateFooter = e107::getTemplate('download','download','footer'); + } + else + { + $this->templateHeader = ''; + $this->templateFooter = ''; + } }