Differential D20001 Diff 47757 src/applications/people/controller/PhabricatorPeopleWelcomeController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/controller/PhabricatorPeopleWelcomeController.php
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
| $welcome_engine->sendMail(); | $welcome_engine->sendMail(); | ||||
| return id(new AphrontRedirectResponse())->setURI($profile_uri); | return id(new AphrontRedirectResponse())->setURI($profile_uri); | ||||
| } | } | ||||
| $default_message = PhabricatorAuthMessage::loadMessage( | $default_message = PhabricatorAuthMessage::loadMessage( | ||||
| $admin, | $admin, | ||||
| PhabricatorAuthWelcomeMailMessageType::MESSAGEKEY); | PhabricatorAuthWelcomeMailMessageType::MESSAGEKEY); | ||||
| if (strlen($default_message->getMessageText())) { | if ($default_message && strlen($default_message->getMessageText())) { | ||||
| $message_instructions = pht( | $message_instructions = pht( | ||||
| 'The email will identify you as the sender. You may optionally '. | 'The email will identify you as the sender. You may optionally '. | ||||
| 'replace the [[ %s | default custom mail body ]] with different text '. | 'replace the [[ %s | default custom mail body ]] with different text '. | ||||
| 'by providing a message below.', | 'by providing a message below.', | ||||
| $default_message->getURI()); | $default_message->getURI()); | ||||
| } else { | } else { | ||||
| $message_instructions = pht( | $message_instructions = pht( | ||||
| 'The email will identify you as the sender. You may optionally '. | 'The email will identify you as the sender. You may optionally '. | ||||
| Show All 33 Lines | |||||