Project

General

Profile

« Previous | Next » 

Revision 769

Added by thorn over 16 years ago

search: added search_time_limit in settings (mainly for sites with PHP < 4.3.3 and slow search)

View differences:

save.php
626 626
	$search_max_excerpt = addslashes('15');
627 627
	$insert_search_max_excerpt = "INSERT INTO `".TABLE_PREFIX."search` VALUES ('', 'max_excerpt', '$search_max_excerpt', '')";
628 628
	$database->query($insert_search_max_excerpt);
629
	// max time to search per module
630
	$search_time_limit = addslashes('0');
631
	$insert_search_time_limit = "INSERT INTO `".TABLE_PREFIX."search` VALUES ('', 'time_limit', '$search_time_limit', '')";
632
	$database->query($insert_search_time_limit);
629 633
	// some config-elements
630 634
	$database->query("INSERT INTO `".TABLE_PREFIX."search` VALUES ('', 'cfg_enable_old_search', 'true', '')");
631 635
	$database->query("INSERT INTO `".TABLE_PREFIX."search` VALUES ('', 'cfg_search_keywords', 'true', '')");

Also available in: Unified diff