From 5b4e00e510cd4dc4aa159ea3de36323f14436ca9 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 16 May 2012 17:23:56 +0800 Subject: [PATCH] I18n.php --- I18n.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/I18n.php b/I18n.php index 7406de8a..2236d6f5 100644 --- a/I18n.php +++ b/I18n.php @@ -147,7 +147,14 @@ class Pman_Core_I18n extends Pman $tza= array_unique($tza); sort($tza); foreach($tza as $tz) { - $ret[] = array('tz' => $tz); + if (empty($_REQUEST['q']) || + 0 === strcasecmp( + substring($tz,0, strlen($_REQUEST['q'])), + $_REQUEST['q']) + ) { + $ret[] = array('tz' => $tz); + } + } $this->jdata($ret); -- 2.39.2