1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 20:40:56 +01:00

This 'host' thing is not going to end well.

This commit is contained in:
epriestley 2014-06-23 17:04:35 -07:00
parent d1d3bf4eb1
commit f371c7b35f

View file

@ -58,9 +58,9 @@ final class PhabricatorBot extends PhabricatorDaemon {
// Normalize the path component of the URI so users can enter the
// domain without the "/api/" part.
$conduit_uri = new PhutilURI($conduit_uri);
$conduit_uri->setPath('/api/');
$conduit_host = $conduit_uri->getDomain();
$conduit_uri = (string)$conduit_uri;
$conduit_host = (string)$conduit_uri->setPath('/');
$conduit_uri = (string)$conduit_uri->setPath('/api/');
$conduit = new ConduitClient($conduit_uri);
$response = $conduit->callMethodSynchronous(