Changeset 1330 in subversion
- Timestamp:
- Apr 23, 2008 3:33:59 PM (5 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_template.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r1325 r1330 1 1 CHANGELOG RoundCube Webmail 2 2 --------------------------- 3 4 2008/04/23 (alec) 5 ---------- 6 - Append skin_path to images location only when it starts 7 with '/' sign (#1484859) 3 8 4 9 2008/04/20 (estadtherr) -
trunk/roundcubemail/program/include/rcube_template.php
r1329 r1330 600 600 } 601 601 602 603 602 /** 604 603 * Create and register a button … … 618 617 $a_static_commands = array('compose', 'list'); 619 618 620 $browser = new rcube_browser();621 $skin_path = $this->config['skin_path'];622 623 619 if (!($attrib['command'] || $attrib['name'])) { 624 620 return ''; 625 621 } 622 623 $browser = new rcube_browser(); 624 626 625 // try to find out the button type 627 626 if ($attrib['type']) { … … 688 687 $attrib['id'], 689 688 $attrib['type'], 690 $attrib['imageact'] ? $ skin_path.$attrib['imageact']: $attrib['classact'],691 $attrib['imagesel'] ? $ skin_path.$attrib['imagesel']: $attrib['classsel'],692 $attrib['imageover'] ? $ skin_path.$attrib['imageover']: ''689 $attrib['imageact'] ? $this->abs_url($attrib['imageact']) : $attrib['classact'], 690 $attrib['imagesel'] ? $this->abs_url($attrib['imagesel']) : $attrib['classsel'], 691 $attrib['imageover'] ? $this->abs_url($attrib['imageover']) : '' 693 692 )); 694 693 … … 756 755 ) 757 756 ); 758 $img_tag = sprintf('<img src="%%s"%s />', $attrib_str); 759 $btn_content = sprintf($img_tag, $skin_path.$attrib['image']); 757 $btn_content = sprintf('<img src="%s"%s />', $this->abs_url($attrib['image']), $attrib_str); 760 758 if ($attrib['label']) { 761 759 $btn_content .= ' '.$attrib['label'];
Note: See TracChangeset
for help on using the changeset viewer.
