Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/paste/xaction/PhabricatorPasteLanguageTransaction.php b/src/applications/paste/xaction/PhabricatorPasteLanguageTransaction.php
index 75cf8559d1..3497288b74 100644
--- a/src/applications/paste/xaction/PhabricatorPasteLanguageTransaction.php
+++ b/src/applications/paste/xaction/PhabricatorPasteLanguageTransaction.php
@@ -1,33 +1,33 @@
<?php
final class PhabricatorPasteLanguageTransaction
extends PhabricatorPasteTransactionType {
const TRANSACTIONTYPE = 'paste.language';
public function generateOldValue($object) {
return $object->getLanguage();
}
public function applyInternalEffects($object, $value) {
$object->setLanguage($value);
}
public function getTitle() {
return pht(
"%s updated the paste's language from %s to %s.",
$this->renderAuthor(),
- $this->renderValue($this->getOldValue()),
- $this->renderValue($this->getNewValue()));
+ $this->renderOldValue(),
+ $this->renderNewValue());
}
public function getTitleForFeed() {
return pht(
'%s updated the language for %s from %s to %s.',
$this->renderAuthor(),
$this->renderObject(),
- $this->renderValue($this->getOldValue()),
- $this->renderValue($this->getNewValue()));
+ $this->renderOldValue(),
+ $this->renderNewValue());
}
}
diff --git a/src/applications/paste/xaction/PhabricatorPasteTitleTransaction.php b/src/applications/paste/xaction/PhabricatorPasteTitleTransaction.php
index 0fc86b3d96..f9d24a0a93 100644
--- a/src/applications/paste/xaction/PhabricatorPasteTitleTransaction.php
+++ b/src/applications/paste/xaction/PhabricatorPasteTitleTransaction.php
@@ -1,33 +1,33 @@
<?php
final class PhabricatorPasteTitleTransaction
extends PhabricatorPasteTransactionType {
const TRANSACTIONTYPE = 'paste.title';
public function generateOldValue($object) {
return $object->getTitle();
}
public function applyInternalEffects($object, $value) {
$object->setTitle($value);
}
public function getTitle() {
return pht(
- '%s updated the paste\'s title from "%s" to "%s".',
+ '%s changed the title of this paste from %s to %s.',
$this->renderAuthor(),
- $this->getOldValue(),
- $this->getNewValue());
+ $this->renderOldValue(),
+ $this->renderNewValue());
}
public function getTitleForFeed() {
return pht(
- '%s updated the title for %s from "%s" to "%s".',
+ '%s updated the title for %s from %s to %s.',
$this->renderAuthor(),
$this->renderObject(),
- $this->getOldValue(),
- $this->getNewValue());
+ $this->renderOldValue(),
+ $this->renderNewValue());
}
}

File Metadata

Mime Type
text/x-diff
Expires
Tue, Jun 10, 3:40 PM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
140464
Default Alt Text
(2 KB)

Event Timeline