Changeset 6384

Show
Ignore:
Timestamp:
07/06/08 18:35:21 (6 months ago)
Author:
creorix
Message:

#1050

  • rewrite.php에서 query string을 자르지 않는 문제와 spacer의 경로가 잘못된 문제 수정
  • 그 언젠가가 조금 오래되었을 듯 싶습니다 ;;
Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/library/view/ownerView.php

    r6365 r6384  
    178178    strpos($attachments[0]['name'] ,'.jpg') === false && 
    179179    strpos($attachments[0]['name'] ,'.png') === false)) { 
    180         $fileName =  "{$service['path']}{$adminSkinSetting['skin']}/resources/image/spacer.gif"; 
     180        $fileName =  "{$service['path']}{$adminSkinSetting['skin']}/image/spacer.gif"; 
    181181    } else { 
    182182        $fileName = "{$service['path']}/attach/$blogid/{$attachments[0]['name']}"; 
     
    313313                                                                    height = 90; 
    314314                                                                } 
    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'];?>/resources/image/spacer.gif\'"/>';                                                               
     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\'"/>';                                                                 
    316316                                                            } 
    317317                                                            catch(e) { } 
  • trunk/rewrite.php

    r6337 r6384  
    2929              preg_replace('/thumbnail/', 'cache/thumbnail', $accessInfo['input'], 1) : 
    3030              $accessInfo['input']), '/'); 
     31        $part = (($qpos = strpos($part, '?')) !== false) ? substr($part, 0, $qpos) : $part; 
    3132        if(file_exists($part)) { 
    3233            require_once ROOT.'/library/function/file.php';