Changeset 1330 in subversion


Ignore:
Timestamp:
Apr 23, 2008 3:33:59 PM (5 years ago)
Author:
alec
Message:
  • Append skin_path to images location only when it starts with '/' sign (#1484859)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r1325 r1330  
    11CHANGELOG RoundCube Webmail 
    22--------------------------- 
     3 
     42008/04/23 (alec) 
     5---------- 
     6- Append skin_path to images location only when it starts  
     7  with '/' sign (#1484859) 
    38 
    492008/04/20 (estadtherr) 
  • trunk/roundcubemail/program/include/rcube_template.php

    r1329 r1330  
    600600    } 
    601601 
    602  
    603602    /** 
    604603     * Create and register a button 
     
    618617        $a_static_commands = array('compose', 'list'); 
    619618 
    620         $browser   = new rcube_browser(); 
    621         $skin_path = $this->config['skin_path']; 
    622  
    623619        if (!($attrib['command'] || $attrib['name'])) { 
    624620            return ''; 
    625621        } 
     622 
     623        $browser   = new rcube_browser(); 
     624 
    626625        // try to find out the button type 
    627626        if ($attrib['type']) { 
     
    688687                $attrib['id'], 
    689688                $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']) : '' 
    693692            )); 
    694693 
     
    756755                ) 
    757756            ); 
    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); 
    760758            if ($attrib['label']) { 
    761759                $btn_content .= ' '.$attrib['label']; 
Note: See TracChangeset for help on using the changeset viewer.