Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / repository / xaction / PhabricatorRepositorySVNSubpathTransaction.php
blob10de2d9980996814ece35fb2ca3e21de9ef8512d
1 <?php
3 final class PhabricatorRepositorySVNSubpathTransaction
4 extends PhabricatorRepositoryTransactionType {
6 const TRANSACTIONTYPE = 'repo:svn-subpath';
8 public function generateOldValue($object) {
9 return $object->getDetail('svn-subpath');
12 public function applyInternalEffects($object, $value) {
13 $object->setDetail('svn-subpath', $value);
16 public function getTitle() {
17 $old = $this->getOldValue();
18 $new = $this->getNewValue();
20 if (!strlen($new)) {
21 return pht(
22 '%s removed %s as the "Import Only" path.',
23 $this->renderAuthor(),
24 $this->renderOldValue());
25 } else if (!strlen($old)) {
26 return pht(
27 '%s set the repository "Import Only" path to %s.',
28 $this->renderAuthor(),
29 $this->renderNewValue());
30 } else {
31 return pht(
32 '%s changed the "Import Only" path from %s to %s.',
33 $this->renderAuthor(),
34 $this->renderOldValue(),
35 $this->renderNewValue());