Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/ExceptionHandler.php')
-rw-r--r--core/ExceptionHandler.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/core/ExceptionHandler.php b/core/ExceptionHandler.php
index f636b3b05d..a6e2c075e4 100644
--- a/core/ExceptionHandler.php
+++ b/core/ExceptionHandler.php
@@ -93,12 +93,16 @@ class ExceptionHandler
$message = Common::sanitizeInputValue($message);
}
- $logo = new CustomLogo();
- $logoHeaderUrl = false;
- $logoFaviconUrl = false;
+ $logoHeaderUrl = 'plugins/Morpheus/images/logo.svg';
+ $logoFaviconUrl = 'plugins/CoreHome/images/favicon.png';
try {
- $logoHeaderUrl = $logo->getHeaderLogoUrl();
+ $logo = new CustomLogo();
+ if ($logo->hasSVGLogo()) {
+ $logoHeaderUrl = $logo->getSVGLogoUrl();
+ } else {
+ $logoHeaderUrl = $logo->getHeaderLogoUrl();
+ }
$logoFaviconUrl = $logo->getPathUserFavicon();
} catch (Exception $ex) {
try {