From e5d6f9e77b5b23d17a6f40301c968598096aab81 Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 13 Dec 2007 01:17:50 +0000 Subject: [PATCH] =?UTF-8?q?=EC=8A=A4=ED=94=84=EB=A7=81=EB=85=B8=ED=8A=B8?= =?UTF-8?q?=20=EB=AA=A8=EB=93=88=EC=97=90=EC=84=9C=20=EB=8F=84=EB=A9=94?= =?UTF-8?q?=EC=9D=B8=20=EC=A7=80=EC=A0=95=EC=8B=9C=20=EA=B2=80=EC=83=89?= =?UTF-8?q?=EC=9D=B4=20=EC=95=88=EB=90=98=EB=8D=98=20=EB=AC=B8=EC=A0=9C=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3316 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/springnote/springnote.model.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/springnote/springnote.model.php b/modules/springnote/springnote.model.php index 868a01750..b9439f459 100644 --- a/modules/springnote/springnote.model.php +++ b/modules/springnote/springnote.model.php @@ -113,8 +113,12 @@ **/ function getPages($query = null, $fulltext = true) { - if($query) $url = sprintf('%s?q=%s&fulltext=%d', $this->getUrl(), urlencode($query), $fulltext?1:0); - else $url = $this->getUrl(); + if($query) { + if($this->domain) $url = sprintf('%s&q=%s&fulltext=%d', $this->getUrl(), urlencode($query), $fulltext?1:0); + else $url = sprintf('%s?q=%s&fulltext=%d', $this->getUrl(), urlencode($query), $fulltext?1:0); + } else { + $url = $this->getUrl(); + } $oReqeust = $this->getRequest($url); $oResponse = $oReqeust->sendRequest();