From 400524abf8df2d1cc6311c6b965c53daa013e60b Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 31 Jan 2011 16:59:01 -0800 Subject: [PATCH] Get rid of some local.aphront references. --- .../creatediff/ConduitAPI_differential_creatediff_Method.php | 5 ++++- src/applications/differential/mail/base/DifferentialMail.php | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/applications/conduit/method/differential/creatediff/ConduitAPI_differential_creatediff_Method.php b/src/applications/conduit/method/differential/creatediff/ConduitAPI_differential_creatediff_Method.php index 0d5f877c1f..ccf09be6ab 100644 --- a/src/applications/conduit/method/differential/creatediff/ConduitAPI_differential_creatediff_Method.php +++ b/src/applications/conduit/method/differential/creatediff/ConduitAPI_differential_creatediff_Method.php @@ -125,9 +125,12 @@ class ConduitAPI_differential_creatediff_Method extends ConduitAPIMethod { $diff->save(); + $path = '/differential/diff/'.$diff->getID().'/'; + $uri = PhabricatorEnv::getURI($path); + return array( 'diffid' => $diff->getID(), - 'uri' => 'http://local.aphront.com/differential/diff/'.$diff->getID().'/', + 'uri' => $uri, ); } diff --git a/src/applications/differential/mail/base/DifferentialMail.php b/src/applications/differential/mail/base/DifferentialMail.php index 322049845e..e80ae7aebe 100755 --- a/src/applications/differential/mail/base/DifferentialMail.php +++ b/src/applications/differential/mail/base/DifferentialMail.php @@ -247,8 +247,7 @@ EOTEXT; } public function getRevisionURI() { - // TODO - return 'http://local.aphront.com/D'.$this->getRevision()->getID(); + return PhabricatorEnv::getURI('/D'.$this->getRevision()->getID()); } public function setIsFirstMailToRecipients($first) {