Project

General

Profile

« Previous | Next » 

Revision 440

Added by Matthias over 17 years ago

Added multilingual support to the search;
Fixed ticket #385;

View differences:

search.php
140 140
	$vars = array('[SEARCH_STRING]', '[WB_URL]', '[PAGE_EXTENSION]', '[TEXT_SEARCH]', '[TEXT_ALL_WORDS]', '[TEXT_ANY_WORDS]', '[TEXT_EXACT_MATCH]', '[TEXT_MATCH]', '[TEXT_MATCHING]', '[ALL_CHECKED]', '[ANY_CHECKED]', '[EXACT_CHECKED]', '[REFERRER_ID]');
141 141
	$values = array($search_string, WB_URL, PAGE_EXTENSION, $TEXT['SEARCH'], $TEXT['ALL_WORDS'], $TEXT['ANY_WORDS'], $TEXT['EXACT_MATCH'], $TEXT['MATCH'], $TEXT['MATCHING'], $all_checked, $any_checked, $exact_checked, REFERRER_ID);
142 142
	$search_header = str_replace($vars, $values, ($fetch_header['value']));
143
	$vars = array('[TEXT_NO_RESULTS]');
144
	$values = array($TEXT['NO_RESULTS']);
145
	$search_no_results = str_replace($vars, $values, ($fetch_no_results['value']));
143 146
	
144 147
	// Show search header
145 148
	echo $search_header;
......
302 305
	
303 306
		// Say no items found if we should
304 307
		if($pages_listed == array() AND $items_listed == array()) {
305
			echo $fetch_no_results['value'];
308
			echo $search_no_results;
306 309
		}
307 310
		
308 311
	}

Also available in: Unified diff