mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 15:21:40 +09:00
스프링노트모듈에서 내부링크의 경우 스프링노트모듈의 pageid값에 해당하는 페이지로 내용 수정하도록 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3287 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c93255d420
commit
6e2a5f765a
1 changed files with 3 additions and 0 deletions
|
|
@ -92,6 +92,9 @@
|
|||
$page->body = trim($xmldoc->page->body);
|
||||
$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);
|
||||
|
||||
$uri = preg_replace('/pages(.*)$/i','',$page->uri);
|
||||
$page->css_files = array(
|
||||
sprintf('%sstylesheets/xhtmlContent.css?%d', $uri, time()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue