mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-23 13:19:56 +09:00
#19053019 - 일부 metaWeblog API의 methodname 호환
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7623 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fb538bb2e1
commit
064f2b5b6f
1 changed files with 5 additions and 0 deletions
|
|
@ -34,6 +34,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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue