mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 04:52:14 +09:00
rss_reader위젯이 PEAR 사용부에서 url이 아닌 path가 잘못 넘어가던 부분 수정하여 동작하도록 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3814 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5ef606d850
commit
8aaf1858e2
1 changed files with 8 additions and 10 deletions
|
|
@ -35,19 +35,17 @@
|
||||||
|
|
||||||
if ($URL_parsed["query"] != "") $path .= "?".$URL_parsed["query"];
|
if ($URL_parsed["query"] != "") $path .= "?".$URL_parsed["query"];
|
||||||
|
|
||||||
$oReqeust = new HTTP_Request($path);
|
$oReqeust = new HTTP_Request($args->rss_url);
|
||||||
$oReqeust->addHeader('Content-Type', 'application/xml');
|
$oReqeust->addHeader('Content-Type', 'application/xml');
|
||||||
$oReqeust->setMethod('GET');
|
$oReqeust->setMethod('GET');
|
||||||
|
|
||||||
$user = $URL_parsed["user"];
|
$user = $URL_parsed["user"];
|
||||||
$pass = $URL_parsed["pass"];
|
$pass = $URL_parsed["pass"];
|
||||||
|
|
||||||
if($user)
|
if($user) $oReqeust->setBasicAuth($user, $pass);
|
||||||
$oReqeust->setBasicAuth($user, $pass);
|
|
||||||
|
|
||||||
$oResponse = $oReqeust->sendRequest();
|
$oResponse = $oReqeust->sendRequest();
|
||||||
if (PEAR::isError($oResponse))
|
if (PEAR::isError($oResponse)) {
|
||||||
{
|
|
||||||
debugPrint("error");
|
debugPrint("error");
|
||||||
return new Object(-1, 'msg_fail_to_request_open');
|
return new Object(-1, 'msg_fail_to_request_open');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue