Author Topic: Built-in Search: Template definition commented out??  (Read 213 times)

Offline CodeALot

  • Posts: 488
  • Gender: Male
Built-in Search: Template definition commented out??
« 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?

 

postern-length