Changeset 6391

Show
Ignore:
Timestamp:
07/07/08 13:29:28 (6 months ago)
Author:
inureyes
Message:

#1050

  • [6385] 를 1.7 트리에 반영
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.7/lib/view/ownerView.php

    r5576 r6391  
    173173    global $service, $blogURL, $adminSkinSetting; 
    174174 
     175    $spacerURL = $service['path'].$adminSkinSetting['skin'].'/image/spacer.gif'; 
     176 
    175177    $blogid = getBlogId(); 
    176178    if(empty($attachments) || ( 
     
    178180    strpos($attachments[0]['name'] ,'.jpg') === false && 
    179181    strpos($attachments[0]['name'] ,'.png') === false)) { 
    180         $fileName =  "{$service['path']}{$adminSkinSetting['skin']}/image/spacer.gif"; 
     182        $fileName =  $spacerURL; 
    181183    } else { 
    182184        $fileName = "{$service['path']}/attach/$blogid/{$attachments[0]['name']}"; 
     
    313315                                                                    height = 90; 
    314316                                                                } 
    315                                                                 document.getElementById('previewSelected').innerHTML = '<img src="<?php echo $service['path'];?>/attach/<?php echo $blogid;?>/'+fileName+'?randseed='+Math.random()+'" width="' + parseInt(width) + '" height="' + parseInt(height) + '" alt="" style="margin-top: ' + ((90-height)/2) + 'px" onerror="this.src=\'<?php echo $service['path'] . $adminSkinSetting['skin'];?>/image/spacer.gif\'"/>';                                                                 
     317                                                                document.getElementById('previewSelected').innerHTML = '<img src="<?php echo $service['path'];?>/attach/<?php echo $blogid;?>/'+fileName+'?randseed='+Math.random()+'" width="' + parseInt(width) + '" height="' + parseInt(height) + '" alt="" style="margin-top: ' + ((90-height)/2) + 'px" onerror="if (this.src != \'<?php echo $spacerURL; ?>\') { this.src=\'<?php echo $spacerURL; ?>\' }"/>';                                                                
    316318                                                            } 
    317319                                                            catch(e) { }