Changeset 690 for devel/profile

Show
Ignore:
Timestamp:
11/05/06 04:51:30 (2 years ago)
Author:
sven
Message:

more icon cacheability - all icon urls now /_icon/(user|file)/ID, to remove unused username variable and question marks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/profile/profile.class.php

    r659 r690  
    305305                        <p> 
    306306                        <a href="{$CFG->wwwroot}{$friends_username}/"> 
    307                         <img src="{$CFG->wwwroot}{$friends_username}/icons/{$info->icon}/w/{$width}" alt="{$friends_name}" border="0" /></a><br /> 
     307                        <img src="{$CFG->wwwroot}_icon/user/{$info->icon}/w/{$width}" alt="{$friends_name}" border="0" /></a><br /> 
    308308                        <span class="userdetails"> 
    309309                        {$friends_name} 
     
    377377                                          WHERE '.$searchline)) { 
    378378                foreach($result as $key => $info) { 
    379                     $icon = url . $info->username . '/icons/'.$post->icon; 
     379                    $icon = url . '_icon/user/'.$post->icon; 
    380380                    $sub_result .= "\t\t\t<item>\n"; 
    381381                    $sub_result .= "\t\t\t\t<name><![CDATA[" . htmlspecialchars(stripslashes($info->name), ENT_COMPAT, 'utf-8') . "]]></name>\n"; 
     
    808808     
    809809        // If this is someone else's portfolio, display the user's icon 
    810         $run_result = "<div class=\"box_user\">"
     810        $run_result = '<div class="box_user">'
    811811         
    812812        $info = get_record('users','ident',$page_owner); 
     
    818818        } 
    819819         
    820         $icon = "<img alt=\"\" src=\"".url.$info->username.'icons/'.$info->icon.'/w/67" />'; 
     820        $icon = '<img alt="" src="' . url . '_icon/user/' . $info->icon . '/w/67" />'; 
    821821        $name = stripslashes($info->name); 
    822822        $url = url . $info->username . "/";