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:
parent
600e052e72
commit
4a786f48de
1 changed files with 3 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue