mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
This 'host' thing is not going to end well.
This commit is contained in:
parent
d1d3bf4eb1
commit
f371c7b35f
1 changed files with 3 additions and 3 deletions
|
@ -58,9 +58,9 @@ final class PhabricatorBot extends PhabricatorDaemon {
|
||||||
// Normalize the path component of the URI so users can enter the
|
// Normalize the path component of the URI so users can enter the
|
||||||
// domain without the "/api/" part.
|
// domain without the "/api/" part.
|
||||||
$conduit_uri = new PhutilURI($conduit_uri);
|
$conduit_uri = new PhutilURI($conduit_uri);
|
||||||
$conduit_uri->setPath('/api/');
|
|
||||||
$conduit_host = $conduit_uri->getDomain();
|
$conduit_host = (string)$conduit_uri->setPath('/');
|
||||||
$conduit_uri = (string)$conduit_uri;
|
$conduit_uri = (string)$conduit_uri->setPath('/api/');
|
||||||
|
|
||||||
$conduit = new ConduitClient($conduit_uri);
|
$conduit = new ConduitClient($conduit_uri);
|
||||||
$response = $conduit->callMethodSynchronous(
|
$response = $conduit->callMethodSynchronous(
|
||||||
|
|
Loading…
Reference in a new issue