Differential D11680 Diff 28251 src/applications/people/controller/PhabricatorPeopleApproveController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/controller/PhabricatorPeopleApproveController.php
Show All 25 Lines | public function processRequest() { | ||||
if ($request->isFormPost()) { | if ($request->isFormPost()) { | ||||
id(new PhabricatorUserEditor()) | id(new PhabricatorUserEditor()) | ||||
->setActor($admin) | ->setActor($admin) | ||||
->approveUser($user, true); | ->approveUser($user, true); | ||||
$title = pht( | $title = pht( | ||||
'Phabricator Account "%s" Approved', | 'Phabricator Account "%s" Approved', | ||||
$user->getUsername(), | $user->getUsername()); | ||||
$admin->getUsername()); | |||||
$body = pht( | $body = pht( | ||||
"Your Phabricator account (%s) has been approved by %s. You can ". | "Your Phabricator account (%s) has been approved by %s. You can ". | ||||
"login here:\n\n %s\n\n", | "login here:\n\n %s\n\n", | ||||
$user->getUsername(), | $user->getUsername(), | ||||
$admin->getUsername(), | $admin->getUsername(), | ||||
PhabricatorEnv::getProductionURI('/')); | PhabricatorEnv::getProductionURI('/')); | ||||
Show All 24 Lines |