diff --git a/src/applications/repository/controller/edit/PhabricatorRepositoryEditController.php b/src/applications/repository/controller/edit/PhabricatorRepositoryEditController.php index 02b7623475..26dbe59196 100644 --- a/src/applications/repository/controller/edit/PhabricatorRepositoryEditController.php +++ b/src/applications/repository/controller/edit/PhabricatorRepositoryEditController.php @@ -508,7 +508,6 @@ class PhabricatorRepositoryEditController private function processGithubRequest() { $request = $this->getRequest(); - $user = $request->getUser(); $repository = $this->repository; $repository_id = $repository->getID(); @@ -516,9 +515,10 @@ class PhabricatorRepositoryEditController $path = '/github-post-receive/'.$repository_id.'/'.$token.'/'; $post_uri = PhabricatorEnv::getURI($path); - $gitform = new AphrontFormView(); + $gitform = new AphrontFormLayoutView(); $gitform - ->setUser($user) + ->setBackgroundShading(true) + ->setPadded(true) ->appendChild( '
You can configure GitHub to '. 'notify Phabricator after changes are pushed. Log into GitHub, go '. diff --git a/src/applications/repository/controller/edit/__init__.php b/src/applications/repository/controller/edit/__init__.php index 350f53cbc5..37a50995f1 100644 --- a/src/applications/repository/controller/edit/__init__.php +++ b/src/applications/repository/controller/edit/__init__.php @@ -22,6 +22,7 @@ phutil_require_module('phabricator', 'view/form/control/submit'); phutil_require_module('phabricator', 'view/form/control/text'); phutil_require_module('phabricator', 'view/form/control/textarea'); phutil_require_module('phabricator', 'view/form/error'); +phutil_require_module('phabricator', 'view/form/layout'); phutil_require_module('phabricator', 'view/layout/panel'); phutil_require_module('phabricator', 'view/layout/sidenav'); phutil_require_module('phabricator', 'view/utils');