From beaa73df4aa483e22df41e2b19dcc6b99dafb7a3 Mon Sep 17 00:00:00 2001 From: Christian Wach Date: Thu, 26 Nov 2020 12:16:33 +0000 Subject: [PATCH] Fix assignment of base page template --- includes/civicrm.basepage.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/civicrm.basepage.php b/includes/civicrm.basepage.php index a106e83..d36f6bf 100644 --- a/includes/civicrm.basepage.php +++ b/includes/civicrm.basepage.php @@ -622,13 +622,13 @@ public function basepage_template($template) { * * @since 4.6 * - * @param string $basepage_template The provided template name. + * @param string $template_name The provided template name. * @return string The overridden template name. */ - $basepage_template = apply_filters('civicrm_basepage_template', $basepage_template); + $basepage_template = apply_filters('civicrm_basepage_template', $template_name); - // Use the provided page template, but allow overrides. - $page_template = locate_template([$template_name]); + // Find the base page template. + $page_template = locate_template([$basepage_template]); // If not homepage and template is found. if ('' != $page_template && !is_front_page()) { @@ -655,7 +655,7 @@ public function basepage_template($template) { */ $home_template_name = apply_filters('civicrm_basepage_home_template', 'page.php'); - // Find homepage the template. + // Find the homepage template. $home_template = locate_template([$home_template_name]); // Use it if found.