mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-10 22:12:16 +09:00
springnote에서 내부 링크 앞에 mid가 남는 문제 해결
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3389 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
dbdcb04f94
commit
d81806bfc9
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@
|
|||
$page->source = trim($xmldoc->page->source->body);
|
||||
|
||||
// source에서 /pages/숫자로 되어 있는 url의 수정
|
||||
$page->source = preg_replace('/="\/pages\/([0-9]+)"/is','="?mid='.Context::get('mid').'&pageid=\\1"', $page->source);
|
||||
$page->source = preg_replace('/="\/pages\/([0-9]+)"/is','="./?mid='.Context::get('mid').'&pageid=\\1"', $page->source);
|
||||
|
||||
// 첨부파일의 경로를 변경
|
||||
$page->source = preg_replace('/="\/pages\/([0-9]+)\/attachments\/([0-9]+)"/is','="'.$page->uri.'/attachments/\\2"', $page->source);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue