mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Slightly simplify some Paste modular transactions
Summary: Modular transactions have slightly more modern ways to express values now. Test Plan: Looked at transaction record of a paste. Reviewers: chad, avivey Reviewed By: avivey Differential Revision: https://secure.phabricator.com/D16293
This commit is contained in:
parent
439af11e70
commit
3227292073
2 changed files with 10 additions and 10 deletions
|
@ -17,8 +17,8 @@ final class PhabricatorPasteLanguageTransaction
|
|||
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() {
|
||||
|
@ -26,8 +26,8 @@ final class PhabricatorPasteLanguageTransaction
|
|||
'%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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -15,19 +15,19 @@ final class PhabricatorPasteTitleTransaction
|
|||
|
||||
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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue