Differential D17954 Diff 43187 src/applications/project/xaction/PhabricatorProjectSlugsTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/xaction/PhabricatorProjectSlugsTransaction.php
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | if ($add && $rem) { | ||||
$this->renderSlugList($add)); | $this->renderSlugList($add)); | ||||
} else if ($rem) { | } else if ($rem) { | ||||
return pht( | return pht( | ||||
'%s removed %d project hashtag(s): %s.', | '%s removed %d project hashtag(s): %s.', | ||||
$this->renderAuthor(), | $this->renderAuthor(), | ||||
count($rem), | count($rem), | ||||
$this->renderSlugList($rem)); | $this->renderSlugList($rem)); | ||||
} | } | ||||
break; | |||||
} | } | ||||
public function getTitleForFeed() { | public function getTitleForFeed() { | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
$new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
$add = array_diff($new, $old); | $add = array_diff($new, $old); | ||||
$rem = array_diff($old, $new); | $rem = array_diff($old, $new); | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |