cvs: phpweb / results.php
| From: | Rasmus Lerdorf | Date: | Sun, 16 Jul 2006 02:47:20 +0000 |
| Subject: | cvs: phpweb / results.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-31977@lists.php.net to get a copy of this message | ||
rasmus Sun Jul 16 02:47:20 2006 UTC
Modified files:
/phpweb results.php
Log:
Fix pt_BR problem
http://cvs.php.net/viewvc.cgi/phpweb/results.php?r1=1.24&r2=1.25&diff_format=u
Index: phpweb/results.php
diff -u phpweb/results.php:1.24 phpweb/results.php:1.25
--- phpweb/results.php:1.24 Mon Jul 10 03:14:12 2006
+++ phpweb/results.php Sun Jul 16 02:47:20 2006
@@ -1,5 +1,5 @@
<?php
-// $Id: results.php,v 1.24 2006/07/10 03:14:12 rasmus Exp $
+// $Id: results.php,v 1.25 2006/07/16 02:47:20 rasmus Exp $
$_SERVER['BASE_PAGE'] = 'results.php';
include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
#include $_SERVER['DOCUMENT_ROOT'] . '/include/loadavg.inc';
@@ -13,7 +13,7 @@
$l = isset($_GET['l']) ? $_GET['l'] : 'en';
}
-if($l=='pt-BR') $l='pt';
+if(strlen($l)>2) $l = substr($l,0,2); // Just take the first 2 chars. eg. pt_BR = pt
$q = urlencode($q);
$l = urlencode($l);