Changeset 4836

Show
Ignore:
Timestamp:
12/24/07 01:56:42 (2 years ago)
Author:
inureyes
Message:

#718

  • 주소 파싱하여 현재 모드 알아내는 부분 수정
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/suri.php

    r4831 r4836  
    6565$skinSetting = getSkinSetting($blogid); 
    6666 
    67 $depth = substr_count(ROOT, '/'); 
     67if(isset($accessInfo)) { 
     68    $depth = substr_count(str_replace($accessInfo['root'],'',$accessInfo['fullpath']),'/'); 
     69} else { 
     70    $depth = substr_count(ROOT, '/'); 
     71} 
    6872if ($depth > 0) { 
    6973    if($service['useRewriteEngine'] === false) $url = substr($url, 5); // Exclude /blog path.