diff options
author | Andrew Dolgov <[email protected]> | 2008-05-18 09:51:07 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-05-18 09:51:07 +0100 |
commit | aa0fa9df1ee81b1af80dd1c882ea171563f6b1e9 (patch) | |
tree | fbe36095f1571e26ce3a5b4838508429351a9200 /modules/backend-rpc.php | |
parent | ebb4133380a5b8823364a6e4afa5470854666935 (diff) |
getNeighborIds: add scope, add automatic prefetch for articles under mouse
Diffstat (limited to 'modules/backend-rpc.php')
-rw-r--r-- | modules/backend-rpc.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index 1bff702a7..2b3fe8726 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -414,6 +414,21 @@ } + if ($subop == "getArticles") { + $ids = split(",", db_escape_string($_REQUEST["ids"])); + + print "<rpc-reply>"; + + foreach ($ids as $id) { + if ($id) { + outputArticleXML($link, $id, 0, false); + } + } + print "</rpc-reply>"; + + return; + } + print "<rpc-reply><error>Unknown method: $subop</error></rpc-reply>"; } ?> |