[geeklog-cvs] Geeklog-1.x/public_html/admin/install index.php, 1.44, 1.45

Dirk Haun dhaun at qs1489.pair.com
Sat Jun 7 09:38:50 EDT 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install
In directory qs1489.pair.com:/tmp/cvs-serv95851

Modified Files:
	index.php 
Log Message:
Fixed setting the default language on a fresh install (reported by Ivy)


Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/index.php,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** index.php	7 Jun 2008 07:48:10 -0000	1.44
--- index.php	7 Jun 2008 13:38:48 -0000	1.45
***************
*** 933,936 ****
--- 933,941 ----
  function INST_getDefaultLanguage($langpath, $language, $utf8 = false)
  {
+     $pos = strpos($language, '_utf-8');
+     if ($pos !== false) {
+         $language = substr($language, 0, $pos);
+     }
+ 
      if ($utf8) {
          $lngname = $language . '_utf-8';




More information about the geeklog-cvs mailing list