diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -308,9 +308,10 @@ function autoLocale() | |||
308 | { // (It's a bit crude, but it works very well. Preferred language is always presented first.) | 308 | { // (It's a bit crude, but it works very well. Preferred language is always presented first.) |
309 | if (preg_match('/([a-z]{2})-?([a-z]{2})?/i',$_SERVER['HTTP_ACCEPT_LANGUAGE'],$matches)) { | 309 | if (preg_match('/([a-z]{2})-?([a-z]{2})?/i',$_SERVER['HTTP_ACCEPT_LANGUAGE'],$matches)) { |
310 | $loc = $matches[1] . (!empty($matches[2]) ? '_' . strtoupper($matches[2]) : ''); | 310 | $loc = $matches[1] . (!empty($matches[2]) ? '_' . strtoupper($matches[2]) : ''); |
311 | $attempts = array($loc, str_replace('_', '-', $loc), | 311 | $attempts = array($loc.'.UTF-8', $loc, str_replace('_', '-', $loc).'.UTF-8', str_replace('_', '-', $loc), |
312 | $loc . '_' . strtoupper($loc), $loc . '_' . $loc, | 312 | $loc . '_' . strtoupper($loc).'.UTF-8', $loc . '_' . strtoupper($loc), |
313 | $loc . '-' . strtoupper($loc), $loc . '-' . $loc); | 313 | $loc . '_' . $loc.'.UTF-8', $loc . '_' . $loc, $loc . '-' . strtoupper($loc).'.UTF-8', |
314 | $loc . '-' . strtoupper($loc), $loc . '-' . $loc.'.UTF-8', $loc . '-' . $loc); | ||
314 | } | 315 | } |
315 | } | 316 | } |
316 | setlocale(LC_TIME, $attempts); // LC_TIME = Set local for date/time format only. | 317 | setlocale(LC_TIME, $attempts); // LC_TIME = Set local for date/time format only. |
@@ -1777,7 +1778,6 @@ HTML; | |||
1777 | 1778 | ||
1778 | // -------- Otherwise, simply display search form and links: | 1779 | // -------- Otherwise, simply display search form and links: |
1779 | $PAGE = new pageBuilder; | 1780 | $PAGE = new pageBuilder; |
1780 | $PAGE->assign('linkcount',count($LINKSDB)); | ||
1781 | buildLinkList($PAGE,$LINKSDB); // Compute list of links to display | 1781 | buildLinkList($PAGE,$LINKSDB); // Compute list of links to display |
1782 | $PAGE->renderPage('linklist'); | 1782 | $PAGE->renderPage('linklist'); |
1783 | exit; | 1783 | exit; |