Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/phriction/xaction/PhrictionDocumentMoveAwayTransaction.php b/src/applications/phriction/xaction/PhrictionDocumentMoveAwayTransaction.php
index 09ec56dd25..af77a5adea 100644
--- a/src/applications/phriction/xaction/PhrictionDocumentMoveAwayTransaction.php
+++ b/src/applications/phriction/xaction/PhrictionDocumentMoveAwayTransaction.php
@@ -1,64 +1,64 @@
<?php
final class PhrictionDocumentMoveAwayTransaction
extends PhrictionDocumentVersionTransaction {
const TRANSACTIONTYPE = 'move-away';
public function generateOldValue($object) {
return null;
}
public function generateNewValue($object, $value) {
$document = $value;
$dict = array(
'id' => $document->getID(),
'phid' => $document->getPHID(),
'content' => $document->getContent()->getContent(),
'title' => $document->getContent()->getTitle(),
);
return $dict;
}
public function applyInternalEffects($object, $value) {
$object->setStatus(PhrictionDocumentStatus::STATUS_MOVED);
$content = $this->getNewDocumentContent($object);
$content->setContent('');
$content->setChangeType(PhrictionChangeType::CHANGE_MOVE_AWAY);
$content->setChangeRef($value['id']);
}
public function getActionName() {
return pht('Moved Away');
}
public function getTitle() {
$new = $this->getNewValue();
return pht(
- '%s moved this document to %s',
+ '%s moved this document to %s.',
$this->renderAuthor(),
- $this->renderHandleLink($new['phid']));
+ $this->renderObject($new['phid']));
}
public function getTitleForFeed() {
$new = $this->getNewValue();
return pht(
- '%s moved %s to %s',
+ '%s moved %s to %s.',
$this->renderAuthor(),
$this->renderObject(),
- $this->renderHandleLink($new['phid']));
+ $this->renderObject($new['phid']));
}
public function getIcon() {
return 'fa-arrows';
}
public function shouldHideForFeed() {
return true;
}
}

File Metadata

Mime Type
text/x-diff
Expires
Mon, Jul 28, 5:15 PM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
187187
Default Alt Text
(2 KB)

Event Timeline