Project

General

Profile

« Previous | Next » 

Revision 1457

Added by Dietmar over 13 years ago

Preparing 2.8.2 stable, last tests

View differences:

index.php
51 51
		$template->set_block('main_block', 'language_list_block', 'language_list');
52 52
		while( $rec_lang = $res_lang->fetchRow() )
53 53
		{
54
	        $langIcons = (empty($rec_lang['directory'])) ? 'none' : strtolower($rec_lang['directory']);
54 55
			$template->set_var('CODE',        $rec_lang['directory']);
55 56
			$template->set_var('NAME',        $rec_lang['name']);
56
			$template->set_var('FLAG',        THEME_URL.'/images/flags/'.strtolower($rec_lang['directory']));
57
			$template->set_var('FLAG',        THEME_URL.'/images/flags/'.$langIcons);
57 58
			$template->set_var('SELECTED',    (LANGUAGE == $rec_lang['directory'] ? ' selected="selected"' : '') );
58 59
			$template->parse('language_list', 'language_list_block', true);
59 60
		}

Also available in: Unified diff