Differential D20362 Diff 48631 src/applications/dashboard/controller/dashboard/PhabricatorDashboardInstallController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/controller/dashboard/PhabricatorDashboardInstallController.php
- This file was moved from src/applications/dashboard/controller/PhabricatorDashboardInstallController.php.
Show All 9 Lines | public function handleRequest(AphrontRequest $request) { | ||||
$dashboard = id(new PhabricatorDashboardQuery()) | $dashboard = id(new PhabricatorDashboardQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withIDs(array($id)) | ->withIDs(array($id)) | ||||
->executeOne(); | ->executeOne(); | ||||
if (!$dashboard) { | if (!$dashboard) { | ||||
return new Aphront404Response(); | return new Aphront404Response(); | ||||
} | } | ||||
$cancel_uri = $this->getApplicationURI( | $cancel_uri = $dashboard->getURI(); | ||||
'view/'.$dashboard->getID().'/'); | |||||
$home_app = new PhabricatorHomeApplication(); | $home_app = new PhabricatorHomeApplication(); | ||||
$options = array(); | $options = array(); | ||||
$options['home'] = array( | $options['home'] = array( | ||||
'personal' => | 'personal' => | ||||
array( | array( | ||||
'capability' => PhabricatorPolicyCapability::CAN_VIEW, | 'capability' => PhabricatorPolicyCapability::CAN_VIEW, | ||||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |