ticket:347, fixed bug that spring note module does not display template image.

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3415 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2007-12-25 15:41:13 +00:00
parent 87c9e06fec
commit 13aa12e77f

View file

@ -100,6 +100,9 @@
// 첨부파일의 경로를 변경
$page->source = preg_replace('/="\/pages\/([0-9]+)\/attachments\/([0-9]+)"/is','="'.$page->uri.'/attachments/\\2"', $page->source);
// Change path of the template images
$page->source = preg_replace('/="\/images\/template\/([^"]+)"/is','="http://zbxe.springnote.com/images/template/\\1"', $page->source);
$uri = preg_replace('/pages(.*)$/i','',$page->uri);
$page->css_files = array(
sprintf('%sstylesheets/xhtmlContent.css?%d', $uri, time()),