Revision 1457
Added by Dietmar over 13 years ago
index.php | ||
---|---|---|
157 | 157 |
if($result->numRows() > 0) |
158 | 158 |
{ |
159 | 159 |
while($addon = $result->fetchRow()) { |
160 |
$langIcons = (empty($addon['directory'])) ? 'none' : strtolower($addon['directory']); |
|
161 |
|
|
160 | 162 |
$template->set_var('CODE', $addon['directory']); |
161 | 163 |
$template->set_var('NAME', $addon['name']); |
162 |
$template->set_var('FLAG', THEME_URL.'/images/flags/'.strtolower($addon['directory']));
|
|
164 |
$template->set_var('FLAG', THEME_URL.'/images/flags/'.$langIcons);
|
|
163 | 165 |
$template->set_var('SELECTED', (DEFAULT_LANGUAGE == $addon['directory'] ? ' selected="selected"' : '') ); |
164 | 166 |
$template->parse('language_list', 'language_list_block', true); |
165 | 167 |
} |
166 | 168 |
Also available in: Unified diff
Preparing 2.8.2 stable, last tests