Project

General

Profile

« Previous | Next » 

Revision 256

Added by ryan almost 19 years ago

Added default charset option to settings

View differences:

index.php
174 174
	}
175 175
}
176 176

  
177
// Insert default charset values
178
require(ADMIN_PATH.'/interface/charsets.php');
179
$template->set_block('main_block', 'charset_list_block', 'charset_list');
180
foreach($CHARSETS AS $code => $title) {
181
	$template->set_var('VALUE', $code);
182
	$template->set_var('NAME', $title);
183
	if(DEFAULT_CHARSET == $code) {
184
		$template->set_var('SELECTED', 'selected');
185
	} else {
186
		$template->set_var('SELECTED', '');
187
	}
188
	$template->parse('charset_list', 'charset_list_block', true);
189
}
190

  
177 191
// Insert date format list
178 192
require(ADMIN_PATH.'/interface/date_formats.php');
179 193
$template->set_block('main_block', 'date_format_list_block', 'date_format_list');
......
507 521
								'TEXT_DEFAULT' => $TEXT['DEFAULT'],
508 522
								'TEXT_LANGUAGE' => $TEXT['LANGUAGE'],
509 523
								'TEXT_TIMEZONE' => $TEXT['TIMEZONE'],
524
								'TEXT_CHARSET' => $TEXT['CHARSET'],
510 525
								'TEXT_DATE_FORMAT' => $TEXT['DATE_FORMAT'],
511 526
								'TEXT_TIME_FORMAT' => $TEXT['TIME_FORMAT'],
512 527
								'TEXT_TEMPLATE' => $TEXT['TEMPLATE'],

Also available in: Unified diff