Project

General

Profile

« Previous | Next » 

Revision 702

Added by doc almost 17 years ago

fixed language bug (backend language switched to the pages language viewed in frontend)

View differences:

save.php
170 170
// End path and timezone details code
171 171

  
172 172
// Get the default language
173
$allowed_languages = array('CA', 'DA', 'DE', 'DE_du', 'EN', 'ES', 'ET', 'FI', 'FR', 'HR', 'HU', 'IT', 'LV', 'NL', 'PT','SE', 'TR');
173
$allowed_languages = array('CA', 'DA', 'DE', 'EN', 'ES', 'ET', 'FI', 'FR', 'HR', 'HU', 'IT', 'LV', 'NL', 'PT','SE', 'TR');
174 174
if(!isset($_POST['default_language']) OR !in_array($_POST['default_language'], $allowed_languages)) {
175 175
	set_error('Please select a valid default backend language','default_language');
176 176
} else {

Also available in: Unified diff