From 13aa12e77f16ee44c788edef1fb5ca042277d66e Mon Sep 17 00:00:00 2001 From: haneul Date: Tue, 25 Dec 2007 15:41:13 +0000 Subject: [PATCH] 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 --- modules/springnote/springnote.model.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/springnote/springnote.model.php b/modules/springnote/springnote.model.php index a605e7172..59e1f2d9e 100644 --- a/modules/springnote/springnote.model.php +++ b/modules/springnote/springnote.model.php @@ -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()),