Skip to content

Commit

Permalink
refs #1249
Browse files Browse the repository at this point in the history
  * 번호로 접근한 경우에도 모바일 페이지로 이동하도록 수정
  • Loading branch information
inureyes committed Nov 28, 2009
1 parent 5344bd1 commit b9f44c2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion interface/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@

// Redirect for ipod touch / iPhone
if(Setting::getBlogSettingGlobal('useiPhoneUI',true) && (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'],'iPod') || strpos($_SERVER['HTTP_USER_AGENT'],'iPhone')))){
header("Location: $blogURL/i"); exit;
if(isset($suri['id'])) {
$slogan = getSloganById($blogid, $suri['id']);
if(!empty($slogan)) {
header("Location: $blogURL/i/entry/".$slogan); exit;
}
} else {
header("Location: $blogURL/i"); exit;
}
}

publishEntries();
Expand Down

0 comments on commit b9f44c2

Please # to comment.