Differential D13735 Diff 33185 src/applications/files/controller/PhabricatorFileUploadDialogController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/controller/PhabricatorFileUploadDialogController.php
<?php | <?php | ||||
final class PhabricatorFileUploadDialogController | final class PhabricatorFileUploadDialogController | ||||
extends PhabricatorFileController { | extends PhabricatorFileController { | ||||
public function processRequest() { | public function handleRequest(AphrontRequest $request) { | ||||
$request = $this->getRequest(); | $viewer = $request->getViewer(); | ||||
$user = $request->getUser(); | |||||
$dialog = id(new AphrontDialogView()) | $dialog = id(new AphrontDialogView()) | ||||
->setUser($user) | ->setUser($viewer) | ||||
->setTitle(pht('Upload File')) | ->setTitle(pht('Upload File')) | ||||
->appendChild(pht( | ->appendChild(pht( | ||||
'To add files, drag and drop them into the comment text area.')) | 'To add files, drag and drop them into the comment text area.')) | ||||
->addCancelButton('/', pht('Close')); | ->addCancelButton('/', pht('Close')); | ||||
return id(new AphrontDialogResponse())->setDialog($dialog); | return id(new AphrontDialogResponse())->setDialog($dialog); | ||||
} | } | ||||
} | } |