mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 03:14:39 +01:00
Fixes
This commit is contained in:
parent
77a5417f20
commit
b9c6fdb7bb
@ -46,7 +46,7 @@ trait Start
|
||||
if (Magic::$isIpcWorker) {
|
||||
throw new Exception('Not inited!');
|
||||
}
|
||||
if ($this->getWebAPITemplate() === 'legacy') {
|
||||
if (!$this->getWebAPITemplate()) {
|
||||
$this->setWebAPITemplate($settings->getTemplates()->getHtmlTemplate());
|
||||
}
|
||||
$app = [];
|
||||
|
@ -45,7 +45,7 @@ trait Start
|
||||
if (($this->getAuthorization()) === MTProto::LOGGED_IN) {
|
||||
return $this instanceof Client ? $this->getSelf() : $this->fullGetSelf();
|
||||
}
|
||||
if ($this->getWebTemplate() === 'legacy') {
|
||||
if (!$this->getWebTemplate()) {
|
||||
$settings = $this->getSettings();
|
||||
$this->setWebTemplate($settings->getTemplates()->getHtmlTemplate());
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ trait Templates
|
||||
* Web template.
|
||||
*
|
||||
*/
|
||||
private string $webTemplate = 'legacy';
|
||||
private string $webTemplate = '';
|
||||
/**
|
||||
* Format message according to template.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user