projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
388d0f3
)
Fix caching of nl_langInfo() calls
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Sat, 11 Jul 2009 19:38:01 +0000
(15:38 -0400)
committer
Michael J. Rubinsky
<mrubinsk@horde.org>
Sat, 11 Jul 2009 19:38:01 +0000
(15:38 -0400)
framework/Nls/lib/Horde/Nls.php
patch
|
blob
|
history
diff --git
a/framework/Nls/lib/Horde/Nls.php
b/framework/Nls/lib/Horde/Nls.php
index
d2f783d
..
3b3ed92
100644
(file)
--- a/
framework/Nls/lib/Horde/Nls.php
+++ b/
framework/Nls/lib/Horde/Nls.php
@@
-465,10
+465,12
@@
class Horde_Nls
}
if (!isset(self::$_cache['nl_info'])) {
- self::$_cache['nl_info'] =
nl_langinfo($item
);
+ self::$_cache['nl_info'] =
array(
);
}
-
- return self::$_cache['nl_info'];
+ if (!isset(self::$_cache['nl_info'][$item])) {
+ self::$_cache['nl_info'][$item] = nl_langinfo($item);
+ }
+ return self::$_cache['nl_info'][$item];
}
/**