Syntax error and changing notification text
This commit is contained in:
parent
d2241e4660
commit
79b1be655c
|
@ -37,21 +37,22 @@ class WelcomeMessage extends Notification implements ShouldQueue
|
|||
{
|
||||
return ['database'];
|
||||
}
|
||||
public function AdditionalLines()
|
||||
public function AdditionalLines()
|
||||
{
|
||||
|
||||
$AdditionalLine = "";
|
||||
if(Configuration::getValueByKey('CREDITS_REWARD_AFTER_VERIFY_EMAIL') != 0) {
|
||||
$AdditionalLine .= "Verifying your E-Mail Address will grant you ".Configuration::getValueByKey('CREDITS_REWARD_AFTER_VERIFY_EMAIL')." additional " . Configuration::getValueByKey('CREDITS_DISPLAY_NAME') . " <br />";
|
||||
$AdditionalLine .= "Verifying your e-mail address will grant you ".Configuration::getValueByKey('CREDITS_REWARD_AFTER_VERIFY_EMAIL')." additional " . Configuration::getValueByKey('CREDITS_DISPLAY_NAME') . ". <br />";
|
||||
}
|
||||
if(Configuration::getValueByKey('SERVER_LIMIT_REWARD_AFTER_VERIFY_EMAIL') != 0) {
|
||||
$AdditionalLine .= "Verifying your Mail will also increase your Server Limit by " . Configuration::getValueByKey('SERVER_LIMIT_REWARD_AFTER_VERIFY_EMAIL') . " <br />";
|
||||
$AdditionalLine .= "Verifying your e-mail will also increase your Server Limit by " . Configuration::getValueByKey('SERVER_LIMIT_REWARD_AFTER_VERIFY_EMAIL') . ". <br />";
|
||||
}
|
||||
$AdditionalLine .="<br />";
|
||||
if(Configuration::getValueByKey('CREDITS_REWARD_AFTER_VERIFY_DISCORD') != 0) {
|
||||
$AdditionalLine .= "You can also verify your discord account to get another " . Configuration::getValueByKey('CREDITS_REWARD_AFTER_VERIFY_DISCORD') . " " . Configuration::getValueByKey('CREDITS_DISPLAY_NAME') . " <br />";
|
||||
$AdditionalLine .= "You can also verify your discord account to get another " . Configuration::getValueByKey('CREDITS_REWARD_AFTER_VERIFY_DISCORD') . " " . Configuration::getValueByKey('CREDITS_DISPLAY_NAME') . ". <br />";
|
||||
}
|
||||
if(Configuration::getValueByKey('SERVER_LIMIT_REWARD_AFTER_VERIFY_DISCORD') != 0) {
|
||||
$AdditionalLine .= "Verifying Discord will also increase your Server Limit by " . Configuration::getValueByKey('SERVER_LIMIT_REWARD_AFTER_VERIFY_DISCORD') . " <br />";
|
||||
$AdditionalLine .= "Verifying your Discord account will also increase your Server Limit by " . Configuration::getValueByKey('SERVER_LIMIT_REWARD_AFTER_VERIFY_DISCORD') . ". <br />";
|
||||
}
|
||||
|
||||
return $AdditionalLine;
|
||||
|
@ -69,9 +70,9 @@ class WelcomeMessage extends Notification implements ShouldQueue
|
|||
'content' => "
|
||||
<p>Hello <strong>{$this->user->name}</strong>, Welcome to our dashboard!</p>
|
||||
<h5>Verification</h5>
|
||||
<p>Please remember that you can verify your E-Mail address and Link/Verify your Discord-Account</p>
|
||||
<p>You can verify your e-mail address and link/verify your Discord account.</p>
|
||||
<p>
|
||||
".WelcomeMessage->AdditionalLines()."
|
||||
".$this->AdditionalLines()."
|
||||
</p>
|
||||
<h5>Information</h5>
|
||||
<p>This dashboard can be used to create and delete servers.<br /> These servers can be used and managed on our pterodactyl panel.<br /> If you have any questions, please join our Discord server and #create-a-ticket.</p>
|
||||
|
|
Loading…
Reference in a new issue