diff --git a/src/applications/differential/editor/DifferentialRevisionEditEngine.php b/src/applications/differential/editor/DifferentialRevisionEditEngine.php index 9c399036d5..32c82629bb 100644 --- a/src/applications/differential/editor/DifferentialRevisionEditEngine.php +++ b/src/applications/differential/editor/DifferentialRevisionEditEngine.php @@ -63,6 +63,10 @@ final class DifferentialRevisionEditEngine return $object->getMonogram(); } + public function getCreateURI($form_key) { + return '/differential/diff/create/'; + } + protected function getObjectCreateShortText() { return pht('Create Revision'); } diff --git a/src/applications/transactions/editengine/PhabricatorEditEngine.php b/src/applications/transactions/editengine/PhabricatorEditEngine.php index 82af45dca8..0986247454 100644 --- a/src/applications/transactions/editengine/PhabricatorEditEngine.php +++ b/src/applications/transactions/editengine/PhabricatorEditEngine.php @@ -566,6 +566,18 @@ abstract class PhabricatorEditEngine return $this->getObjectViewURI($object); } + /** + * @task uri + */ + public function getCreateURI($form_key) { + try { + $create_uri = $this->getEditURI(null, "form/{$form_key}/"); + } catch (Exception $ex) { + $create_uri = null; + } + + return $create_uri; + } /** * @task uri diff --git a/src/applications/transactions/storage/PhabricatorEditEngineConfiguration.php b/src/applications/transactions/storage/PhabricatorEditEngineConfiguration.php index 6c9f3a50a6..b1919a0ee0 100644 --- a/src/applications/transactions/storage/PhabricatorEditEngineConfiguration.php +++ b/src/applications/transactions/storage/PhabricatorEditEngineConfiguration.php @@ -227,14 +227,7 @@ final class PhabricatorEditEngineConfiguration public function getCreateURI() { $form_key = $this->getIdentifier(); $engine = $this->getEngine(); - - try { - $create_uri = $engine->getEditURI(null, "form/{$form_key}/"); - } catch (Exception $ex) { - $create_uri = null; - } - - return $create_uri; + return $engine->getCreateURI($form_key); } public function getIdentifier() {