1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-26 00:32:41 +01:00

Use paste.query for arc paste

Summary: paste.info is deprecated; switch to using paste.query

Test Plan:
  arc paste P123
  arc paste P123 --json

Reviewers: epriestley, vrana

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3402
This commit is contained in:
Nick Harper 2012-08-29 11:04:19 -07:00
parent 600e052e72
commit 4a786f48de

View file

@ -119,10 +119,11 @@ EOTEXT
$conduit = $this->getConduit();
$info = $conduit->callMethodSynchronous(
'paste.info',
'paste.query',
array(
'paste_id' => $this->id,
'ids' => array($this->id),
));
$info = head($info);
if ($this->getJSON()) {
echo json_encode($info)."\n";