Changeset 2acbc8e in github


Ignore:
Timestamp:
Dec 7, 2011 3:40:54 AM (18 months ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
86130d63
Parents:
2e0052a5
Message:

Remove unused code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcmail.php

    rad332809 r2acbc8e  
    989989      $attrib = array('name' => $attrib); 
    990990 
    991     $nr = is_numeric($attrib['nr']) ? $attrib['nr'] : 1; 
    992991    $name = $attrib['name'] ? $attrib['name'] : ''; 
    993992 
     
    997996 
    998997    // check for text with domain 
    999     if ($domain && ($text_item = $this->texts[$domain.'.'.$name])) 
     998    if ($domain && ($text = $this->texts[$domain.'.'.$name])) 
    1000999      ; 
    10011000    // text does not exist 
    1002     else if (!($text_item = $this->texts[$name])) { 
     1001    else if (!($text = $this->texts[$name])) { 
    10031002      return "[$name]"; 
    1004     } 
    1005  
    1006     // make text item array 
    1007     $a_text_item = is_array($text_item) ? $text_item : array('single' => $text_item); 
    1008  
    1009     // decide which text to use 
    1010     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 single 
    1026     if ($text == '') { 
    1027       $text = $a_text_item['single']; 
    10281003    } 
    10291004 
     
    10421017      return mb_strtolower($text); 
    10431018 
    1044     return $text; 
     1019    return strtr($text, array('\n' => "\n")); 
    10451020  } 
    10461021 
Note: See TracChangeset for help on using the changeset viewer.