WebsiteBaker Community Forum

WebsiteBaker Support (2.12.x) => General Help & Support => Topic started by: CodeALot on February 10, 2020, 01:39:23 PM

Title: Built-in Search: Template definition commented out??
Post by: CodeALot on February 10, 2020, 01:39:23 PM
The website I was working on seemed to ignore what template I set for the SEARCH-function.

I just discovered that this is commented out in /search/index.php:
Code: [Select]
 
    //  Find out what the search template is
/*
        $query_template = $database->query("SELECT `value` FROM `".TABLE_PREFIX."search` WHERE `name` = 'template'");
        $fetch_template = $query_template->fetchRow(MYSQLI_ASSOC);
        $template = ($fetch_template['value'] ?: DEFAULT_TEMPLATE);
        if ($template != '') {
//            define('TEMPLATE', $template);
        }
        unset($template);
*/

This of course causes WB to complete ignore what you define in the settings for a Search-template. Why is that commented out?