mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 17:22:20 +09:00
merge sandbox to trunk for 1.4.3.1
git-svn-id: http://xe-core.googlecode.com/svn/trunk@7659 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
289973781a
commit
200d63636c
195 changed files with 8166 additions and 3576 deletions
|
|
@ -13,7 +13,8 @@
|
|||
// called_position가 after_module_proc일때 rsd 태그 삽입
|
||||
if($called_position == 'after_module_proc') {
|
||||
// 현재 모듈의 rsd주소를 만듬
|
||||
$rsd_url = sprintf('%s%s/api', Context::getRequestUri(), $this->mid);
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$rsd_url = getFullSiteUrl($site_module_info->domain, '', 'mid',$site_module_info->mid, 'act','api');
|
||||
|
||||
// 헤더에 rsd태그 삽입
|
||||
Context::addHtmlHeader(" ".'<link rel="EditURI" type="application/rsd+xml" title="RSD" href="'.$rsd_url.'" />');
|
||||
|
|
@ -34,6 +35,11 @@
|
|||
$params = $xmlDoc->methodcall->params->param;
|
||||
if($params && !is_array($params)) $params = array($params);
|
||||
|
||||
// 일부 methodname에 대한 호환
|
||||
if(in_array($method_name, array('metaWeblog.deletePost', 'metaWeblog.getUsersBlogs', 'metaWeblog.getUserInfo'))) {
|
||||
$method_name = str_replace('metaWeblog.', 'blogger.', $method_name);
|
||||
}
|
||||
|
||||
// blogger.deletePost일 경우 첫번째 인자 값 삭제
|
||||
if($method_name == 'blogger.deletePost') array_shift($params);
|
||||
|
||||
|
|
@ -440,7 +446,8 @@
|
|||
default :
|
||||
|
||||
$homepagelink = getUrl('','mid',$this->mid);
|
||||
$api_url = sprintf('%s%s/api', Context::getRequestUri(), $this->mid);
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$api_url = getFullSiteUrl($site_module_info->domain, '', 'mid',$site_module_info->mid, 'act','api');
|
||||
$content = <<<RSDContent
|
||||
<?xml version="1.0" ?>
|
||||
<rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd" >
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue