Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/phid/PhabricatorAuthSSHKeyPHIDType.php
Show All 28 Lines | public function loadHandles( | ||||
PhabricatorHandleQuery $query, | PhabricatorHandleQuery $query, | ||||
array $handles, | array $handles, | ||||
array $objects) { | array $objects) { | ||||
foreach ($handles as $phid => $handle) { | foreach ($handles as $phid => $handle) { | ||||
$key = $objects[$phid]; | $key = $objects[$phid]; | ||||
$handle->setName(pht('SSH Key %d', $key->getID())); | $handle->setName(pht('SSH Key %d', $key->getID())); | ||||
if (!$key->getIsActive()) { | if (!$key->getIsActive()) { | ||||
$handle->setClosed(pht('Inactive')); | $handle->setStatus(PhabricatorObjectHandle::STATUS_CLOSED); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } |