1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 05:54:41 +01:00
This commit is contained in:
Daniil Gentili 2023-01-26 14:43:19 +01:00
parent 77a5417f20
commit b9c6fdb7bb
3 changed files with 3 additions and 3 deletions

View File

@ -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 = [];

View File

@ -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());
}

View File

@ -80,7 +80,7 @@ trait Templates
* Web template.
*
*/
private string $webTemplate = 'legacy';
private string $webTemplate = '';
/**
* Format message according to template.
*