Internal: Fix theme logo loading in CLI email notifications - refs BT#22050

pull/5898/head
christianbeeznst 11 months ago
parent dd60eaf88a
commit 6f69a874a4
  1. 4
      public/main/inc/lib/message.lib.php
  2. 4
      src/CoreBundle/ServiceHelper/AccessUrlHelper.php
  3. 4
      src/CoreBundle/ServiceHelper/ThemeHelper.php

@ -409,7 +409,9 @@ class MessageManager
$subject,
$content,
$group_info,
$attachmentAddedByMail
$attachmentAddedByMail,
$forceTitleWhenSendingEmail,
$baseUrl
);
}
}

@ -43,6 +43,10 @@ class AccessUrlHelper
return $accessUrl;
}
if ('cli' === PHP_SAPI) {
return $this->getFirstAccessUrl();
}
$accessUrl = $this->getFirstAccessUrl();
if ($this->isMultiple()) {

@ -40,10 +40,6 @@ final class ThemeHelper
*/
public function getVisualTheme(): string
{
if ('cli' === PHP_SAPI) {
return '';
}
static $visualTheme;
global $lp_theme_css;

Loading…
Cancel
Save