Changeset 1026 in subversion
- Timestamp:
- Feb 7, 2008 2:50:37 AM (5 years ago)
- Location:
- trunk/roundcubemail/program
- Files:
-
- 3 edited
-
include/main.inc (modified) (2 diffs)
-
include/rcube_shared.inc (modified) (1 diff)
-
steps/mail/get.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/main.inc
r1014 r1026 1713 1713 if ($maxlength && $maxlength>1) 1714 1714 { 1715 $fname = abbrev ate_string($foldername, $maxlength);1715 $fname = abbreviate_string($foldername, $maxlength); 1716 1716 if ($fname != $foldername) 1717 1717 $title = ' title="'.Q($foldername).'"'; … … 1792 1792 // shorten the folder name to a given length 1793 1793 if ($maxlength && $maxlength>1) 1794 $foldername = abbrev ate_string($foldername, $maxlength);1794 $foldername = abbreviate_string($foldername, $maxlength); 1795 1795 } 1796 1796 -
trunk/roundcubemail/program/include/rcube_shared.inc
r839 r1026 558 558 * @param int Max. length 559 559 * @param string Replace removed chars with this 560 * @return string Abbrev ated string561 */ 562 function abbrev ate_string($str, $maxlength, $place_holder='...')560 * @return string Abbreviated string 561 */ 562 function abbreviate_string($str, $maxlength, $place_holder='...') 563 563 { 564 564 $length = rc_strlen($str); -
trunk/roundcubemail/program/steps/mail/get.inc
r930 r1026 109 109 header(sprintf('Content-Disposition: %s; filename="%s";', 110 110 $_GET['_download'] ? 'attachment' : 'inline', 111 $part->filename ? $part->filename: "roundcube.$ctype_secondary"));111 $part->filename ? abbreviate_string($part->filename, 55) : "roundcube.$ctype_secondary")); 112 112 113 113 // turn off output buffering and print part content
Note: See TracChangeset
for help on using the changeset viewer.
