Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/storage/ConpherenceTransaction.php
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
return $title; | return $title; | ||||
break; | break; | ||||
case self::TYPE_PARTICIPANTS: | case self::TYPE_PARTICIPANTS: | ||||
$add = array_diff($new, $old); | $add = array_diff($new, $old); | ||||
$rem = array_diff($old, $new); | $rem = array_diff($old, $new); | ||||
if ($add && $rem) { | if ($add && $rem) { | ||||
$title = pht( | $title = pht( | ||||
'%s edited participant(s), added %d: %s; removed %d: %s.', | '%s edited participant(s), added %s: %s; removed %s: %s.', | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
count($add), | phutil_count($add), | ||||
$this->renderHandleList($add), | $this->renderHandleList($add), | ||||
count($rem), | count($rem), | ||||
$this->renderHandleList($rem)); | $this->renderHandleList($rem)); | ||||
} else if ($add) { | } else if ($add) { | ||||
$title = pht( | $title = pht( | ||||
'%s added %d participant(s): %s.', | '%s added %s participant(s): %s.', | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
count($add), | phutil_count($add), | ||||
$this->renderHandleList($add)); | $this->renderHandleList($add)); | ||||
} else { | } else { | ||||
$title = pht( | $title = pht( | ||||
'%s removed %d participant(s): %s.', | '%s removed %s participant(s): %s.', | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
count($rem), | phutil_count($rem), | ||||
$this->renderHandleList($rem)); | $this->renderHandleList($rem)); | ||||
} | } | ||||
return $title; | return $title; | ||||
break; | break; | ||||
} | } | ||||
return parent::getTitle(); | return parent::getTitle(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |