Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/controller/PhrictionPublishController.php
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
->setContinueOnNoEffect(true) | ->setContinueOnNoEffect(true) | ||||
->setContinueOnMissingFields(true) | ->setContinueOnMissingFields(true) | ||||
->applyTransactions($document, $xactions); | ->applyTransactions($document, $xactions); | ||||
return id(new AphrontRedirectResponse())->setURI($document_uri); | return id(new AphrontRedirectResponse())->setURI($document_uri); | ||||
} | } | ||||
if ($content->getVersion() < $document->getContent()->getVersion()) { | if ($content->getVersion() < $document->getContent()->getVersion()) { | ||||
$title = pht('Revert Document?'); | $title = pht('Publish Older Version?'); | ||||
$body = pht( | $body = pht( | ||||
'Revert the published version of this document to an older '. | 'Revert the published version of this document to an older '. | ||||
'version?'); | 'version?'); | ||||
$button = pht('Revert'); | $button = pht('Revert'); | ||||
} else { | } else { | ||||
$title = pht('Publish Draft?'); | $title = pht('Publish Draft?'); | ||||
$body = pht( | $body = pht( | ||||
'Update the published version of this document to this newer '. | 'Update the published version of this document to this newer '. | ||||
Show All 12 Lines |