mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 15:21:40 +09:00
springnote module 에서 toc 적용 되도록 Regular expression 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3390 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d81806bfc9
commit
ce385d24fa
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\\2"', $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