Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/storage/ConpherenceTransaction.php
| Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
| if ($add && $rem) { | if ($add && $rem) { | ||||
| $title = pht( | $title = pht( | ||||
| '%s edited files(s), added %d and removed %d.', | '%s edited files(s), added %d and removed %d.', | ||||
| $this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
| count($add), | count($add), | ||||
| count($rem)); | count($rem)); | ||||
| } else if ($add) { | } else if ($add) { | ||||
| $title = pht( | $title = pht( | ||||
| '%s added %d files(s).', | '%s added %s files(s).', | ||||
| $this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
| count($add)); | phutil_count($add)); | ||||
| } else { | } else { | ||||
| $title = pht( | $title = pht( | ||||
| '%s removed %d file(s).', | '%s removed %s file(s).', | ||||
| $this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
| count($rem)); | phutil_count($rem)); | ||||
| } | } | ||||
| 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) { | ||||
| ▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines | |||||