1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-04 04:32:43 +01:00
phorge-phorge/src/applications/files/controller/PhabricatorFileUploadDialogController.php

20 lines
511 B
PHP
Raw Normal View History

<?php
final class PhabricatorFileUploadDialogController
extends PhabricatorFileController {
public function handleRequest(AphrontRequest $request) {
$viewer = $request->getViewer();
$dialog = id(new AphrontDialogView())
->setUser($viewer)
->setTitle(pht('Upload File'))
->appendChild(pht(
'To add files, drag and drop them into the comment text area.'))
->addCancelButton('/', pht('Close'));
return id(new AphrontDialogResponse())->setDialog($dialog);
}
}