Differential D10585 Diff 25583 src/applications/dashboard/controller/PhabricatorDashboardInstallController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/controller/PhabricatorDashboardInstallController.php
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | public function processRequest() { | ||||
$installer_phid = $viewer->getPHID(); | $installer_phid = $viewer->getPHID(); | ||||
$application_class = $request->getStr( | $application_class = $request->getStr( | ||||
'applicationClass', | 'applicationClass', | ||||
'PhabricatorHomeApplication'); | 'PhabricatorHomeApplication'); | ||||
$handles = $this->loadHandles(array( | $handles = $this->loadHandles(array( | ||||
$object_phid, | $object_phid, | ||||
$installer_phid)); | $installer_phid, | ||||
)); | |||||
if ($request->isFormPost()) { | if ($request->isFormPost()) { | ||||
$dashboard_install = id(new PhabricatorDashboardInstall()) | $dashboard_install = id(new PhabricatorDashboardInstall()) | ||||
->loadOneWhere( | ->loadOneWhere( | ||||
'objectPHID = %s AND applicationClass = %s', | 'objectPHID = %s AND applicationClass = %s', | ||||
$object_phid, | $object_phid, | ||||
$application_class); | $application_class); | ||||
if (!$dashboard_install) { | if (!$dashboard_install) { | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |