diff options
author | knut <> | 2008-07-30 01:43:12 +0000 |
---|---|---|
committer | knut <> | 2008-07-30 01:43:12 +0000 |
commit | 411fbb72f5a4c72e43af08ee403c79c73eb4b53f (patch) | |
tree | 3915b0d98ca3c0608b56ad280cb08b8837a43dea /framework/I18N/core/MessageSource_gettext.php | |
parent | d15b608ef693c8dbc92c3a5f5ae826ca2812a61f (diff) |
fixed #890
Diffstat (limited to 'framework/I18N/core/MessageSource_gettext.php')
-rw-r--r-- | framework/I18N/core/MessageSource_gettext.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/I18N/core/MessageSource_gettext.php b/framework/I18N/core/MessageSource_gettext.php index 6849987f..a6a936aa 100644 --- a/framework/I18N/core/MessageSource_gettext.php +++ b/framework/I18N/core/MessageSource_gettext.php @@ -186,8 +186,9 @@ class MessageSource_gettext extends MessageSource */
private function getVariants($catalogue='messages')
{
- if(is_null($catalogue))
+ if($catalogue === null) {
$catalogue = 'messages';
+ }
foreach($this->getCatalogueList($catalogue) as $variant)
{
@@ -423,8 +424,9 @@ class MessageSource_gettext extends MessageSource protected function createMessageTemplate($catalogue)
{
- if(is_null($catalogue))
+ if($catalogue === null) {
$catalogue = 'messages';
+ }
$variants = $this->getCatalogueList($catalogue);
$variant = array_shift($variants);
$mo_file = $this->getSource($variant);
|