Further improvements
This commit is contained in:
parent
16040141ae
commit
a6b4c0f5cf
|
@ -119,10 +119,10 @@ abstract class Serialization
|
||||||
//Logger::log('Waiting for exclusive session lock...');
|
//Logger::log('Waiting for exclusive session lock...');
|
||||||
$warningId = Loop::delay(1000, static function () use (&$warningId) {
|
$warningId = Loop::delay(1000, static function () use (&$warningId) {
|
||||||
Logger::log("It seems like the session is busy.");
|
Logger::log("It seems like the session is busy.");
|
||||||
if (\defined(\MADELINE_WORKER::class)) {
|
/*if (\defined(\MADELINE_WORKER::class)) {
|
||||||
Logger::log("Exiting since we're in a worker");
|
Logger::log("Exiting since we're in a worker");
|
||||||
Magic::shutdown(1);
|
Magic::shutdown(1);
|
||||||
}
|
}*/
|
||||||
Logger::log("Telegram does not support starting multiple instances of the same session, make sure no other instance of the session is running.");
|
Logger::log("Telegram does not support starting multiple instances of the same session, make sure no other instance of the session is running.");
|
||||||
$warningId = Loop::repeat(5000, fn () => Logger::log('Still waiting for exclusive session lock...'));
|
$warningId = Loop::repeat(5000, fn () => Logger::log('Still waiting for exclusive session lock...'));
|
||||||
Loop::unreference($warningId);
|
Loop::unreference($warningId);
|
||||||
|
|
|
@ -65,6 +65,8 @@ trait Templates
|
||||||
$firstName = Lang::$current_lang['signupFirstNameWeb'];
|
$firstName = Lang::$current_lang['signupFirstNameWeb'];
|
||||||
$lastName = Lang::$current_lang['signupLastNameWeb'];
|
$lastName = Lang::$current_lang['signupLastNameWeb'];
|
||||||
$form = "<input type='text' name='first_name' placeholder='$firstName' required/><input type='text' name='last_name' placeholder='$lastName'/>";
|
$form = "<input type='text' name='first_name' placeholder='$firstName' required/><input type='text' name='last_name' placeholder='$lastName'/>";
|
||||||
|
} else {
|
||||||
|
$title = '';
|
||||||
}
|
}
|
||||||
$title = \htmlentities($title);
|
$title = \htmlentities($title);
|
||||||
$message = \htmlentities($message);
|
$message = \htmlentities($message);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user