Changeset 1571 for trunk/gregarius/admin/config.php
- Timestamp:
- 09/10/06 14:15:59 (2 years ago)
- Files:
-
- 1 modified
-
trunk/gregarius/admin/config.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/admin/config.php
r1569 r1571 106 106 case 'rss.output.lang': 107 107 $arr = getLanguages(); 108 echo $arr[getConfig('rss.output.lang')]; 108 if (isset($arr[getConfig('rss.output.lang')]['language'])) { 109 echo $arr[getConfig('rss.output.lang')]['language']; 110 } else { 111 echo getConfig('rss.output.lang'); 112 } 109 113 break; 110 114 case 'rss.config.tzoffset': … … 441 445 $value = ""; 442 446 $langs = getLanguages(); 443 foreach ($langs as $code => $name) { 447 foreach ($langs as $code => $info) { 448 if (isset($info['language'])) { 449 $l=$info['language']; 450 } else { 451 $l=$code; 452 } 444 453 echo "<option value=\"$code\""; 445 454 if ($code == $active_lang) { 446 455 echo " selected=\"selected\""; 447 456 } 448 echo "> ".$langs[$code]."</option>\n";457 echo ">$l</option>\n"; 449 458 } 450 459 echo "</select>\n";
