projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
631e691
)
I18n.php
author
Alan Knowles
<alan@akbkhome.com>
Wed, 16 May 2012 09:23:56 +0000
(17:23 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 16 May 2012 09:23:56 +0000
(17:23 +0800)
I18n.php
patch
|
blob
|
history
diff --git
a/I18n.php
b/I18n.php
index
7406de8
..
2236d6f
100644
(file)
--- 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);