Changeset 2acbc8e in github
- Timestamp:
- Dec 7, 2011 3:40:54 AM (18 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
- Children:
- 86130d63
- Parents:
- 2e0052a5
- File:
-
- 1 edited
-
program/include/rcmail.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcmail.php
rad332809 r2acbc8e 989 989 $attrib = array('name' => $attrib); 990 990 991 $nr = is_numeric($attrib['nr']) ? $attrib['nr'] : 1;992 991 $name = $attrib['name'] ? $attrib['name'] : ''; 993 992 … … 997 996 998 997 // check for text with domain 999 if ($domain && ($text _item= $this->texts[$domain.'.'.$name]))998 if ($domain && ($text = $this->texts[$domain.'.'.$name])) 1000 999 ; 1001 1000 // text does not exist 1002 else if (!($text _item= $this->texts[$name])) {1001 else if (!($text = $this->texts[$name])) { 1003 1002 return "[$name]"; 1004 }1005 1006 // make text item array1007 $a_text_item = is_array($text_item) ? $text_item : array('single' => $text_item);1008 1009 // decide which text to use1010 if ($nr == 1) {1011 $text = $a_text_item['single'];1012 }1013 else if ($nr > 0) {1014 $text = $a_text_item['multiple'];1015 }1016 else if ($nr == 0) {1017 if ($a_text_item['none'])1018 $text = $a_text_item['none'];1019 else if ($a_text_item['single'])1020 $text = $a_text_item['single'];1021 else if ($a_text_item['multiple'])1022 $text = $a_text_item['multiple'];1023 }1024 1025 // default text is single1026 if ($text == '') {1027 $text = $a_text_item['single'];1028 1003 } 1029 1004 … … 1042 1017 return mb_strtolower($text); 1043 1018 1044 return $text;1019 return strtr($text, array('\n' => "\n")); 1045 1020 } 1046 1021
Note: See TracChangeset
for help on using the changeset viewer.
