mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 14:49:56 +09:00
Context::getUrl()의 변경에 따라 글/댓글/엮인글 주소 및 카페 주소에 대해 http로 시작하는 값을 구해서 사용하도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6468 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4fccef5401
commit
b05a9f5431
5 changed files with 14 additions and 4 deletions
|
|
@ -69,6 +69,10 @@
|
|||
foreach($output->data as $key => $val) {
|
||||
$banner_src = 'files/attach/cafe_banner/'.$val->site_srl.'.jpg';
|
||||
if(file_exists(_XE_PATH_.$banner_src)) $output->data[$key]->cafe_banner = $banner_src.'?rnd='.filemtime(_XE_PATH_.$banner_src);
|
||||
|
||||
$url = getSiteUrl($val->domain,'');
|
||||
if(substr($url,0,1)=='/') $url = substr(Context::getRequestUri(),0,-1).$url;
|
||||
$output->data[$key]->url = $url;
|
||||
}
|
||||
}
|
||||
Context::set('total_count', $output->total_count);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
<!--@if($val->cafe_description)-->
|
||||
{preg_replace('/<([^>]+)>/i','',$val->cafe_description)}
|
||||
<!--@end-->
|
||||
<span class="url"><a href="{getSiteUrl($val->domain)}" onclick="window.open(this.href); return false;">{getSiteUrl($val->domain)}</a></span>
|
||||
<span class="url"><a href="{getSiteUrl($val->domain)}" onclick="window.open(this.href); return false;">{$val->url}</a></span>
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue