Skip to content

Commit

Permalink
refs #1249
Browse files Browse the repository at this point in the history
  * 글 주소를 인식할 수 있도록 기능 추가
  * TODO : 바로 리다이렉션 되도록 수정. iUI 인터페이스 먹도록 수정
  • Loading branch information
inureyes committed Nov 26, 2009
1 parent 1fa4949 commit 66cc767
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 8 additions & 1 deletion framework/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ private function URIinterpreter() {
} else {
$uri['interfaceType'] = 'blog';
}

/* Load interface. */
$interfacePath = null;
if ($uri['interfaceType'] == 'icon') {
Expand Down Expand Up @@ -157,6 +156,14 @@ private function URIinterpreter() {
$pathPart = implode("/",$uri['fragment']);
$interfacePath = 'interface/blog/'.$pathPart.'/index.php';
break;
case 'i':
if(in_array($uri['fragment'][1],array('entry'))) {
$pathPart = 'i/'.$uri['fragment'][1];
} else {
$pathPath = 'i/';
}
$interfacePath = 'interface/'.$pathPart.'/index.php';
break;
default:
}
}
Expand Down
7 changes: 4 additions & 3 deletions interface/i/entry/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@
</ul>
<?php
} else {
if(empty($suri['value'])) {
list($entries, $paging) = getEntryWithPagingBySlogan($blogid, $suri['value']);
} else {
if(!empty($suri['id'])) {
list($entries, $paging) = getEntryWithPaging($blogid, $suri['id']);
} else if(!empty($suri['value'])) {
list($entries, $paging) = getEntryWithPagingBySlogan($blogid, $suri['value']);
}

$entry = $entries ? $entries[0] : null;
?>
<div id="post_<?php echo $entry['id'];?>" title="<?php echo $entry['title'];?>" class="panel">
Expand Down

0 comments on commit 66cc767

Please # to comment.