Differential D17954 Diff 43187 src/applications/files/controller/PhabricatorFileComposeController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/controller/PhabricatorFileComposeController.php
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
'canCDN' => true, | 'canCDN' => true, | ||||
)); | )); | ||||
if ($project_phid) { | if ($project_phid) { | ||||
$edit_uri = '/project/manage/'.$project->getID().'/'; | $edit_uri = '/project/manage/'.$project->getID().'/'; | ||||
$xactions = array(); | $xactions = array(); | ||||
$xactions[] = id(new PhabricatorProjectTransaction()) | $xactions[] = id(new PhabricatorProjectTransaction()) | ||||
->setTransactionType(PhabricatorProjectTransaction::TYPE_IMAGE) | ->setTransactionType( | ||||
PhabricatorProjectImageTransaction::TRANSACTIONTYPE) | |||||
->setNewValue($file->getPHID()); | ->setNewValue($file->getPHID()); | ||||
$editor = id(new PhabricatorProjectTransactionEditor()) | $editor = id(new PhabricatorProjectTransactionEditor()) | ||||
->setActor($viewer) | ->setActor($viewer) | ||||
->setContentSourceFromRequest($request) | ->setContentSourceFromRequest($request) | ||||
->setContinueOnMissingFields(true) | ->setContinueOnMissingFields(true) | ||||
->setContinueOnNoEffect(true); | ->setContinueOnNoEffect(true); | ||||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |