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/AssetManager/UIAssetFetcher/StylesheetUIAssetFetcher.php')
-rw-r--r--core/AssetManager/UIAssetFetcher/StylesheetUIAssetFetcher.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/AssetManager/UIAssetFetcher/StylesheetUIAssetFetcher.php b/core/AssetManager/UIAssetFetcher/StylesheetUIAssetFetcher.php
index 0d0d36229f..9edea7a635 100644
--- a/core/AssetManager/UIAssetFetcher/StylesheetUIAssetFetcher.php
+++ b/core/AssetManager/UIAssetFetcher/StylesheetUIAssetFetcher.php
@@ -16,7 +16,11 @@ class StylesheetUIAssetFetcher extends UIAssetFetcher
protected function getPriorityOrder()
{
$theme = $this->getTheme();
- $themeName = $theme->getThemeName();
+ if (empty($theme)) {
+ $themeName = 'Morpheus';
+ } else {
+ $themeName = $theme->getThemeName();
+ }
$order = array(
'plugins/Morpheus/stylesheets/base/bootstrap.css',
@@ -76,7 +80,7 @@ class StylesheetUIAssetFetcher extends UIAssetFetcher
if (!$theme) {
return;
}
- $themeStylesheet = $this->getTheme()->getStylesheet();
+ $themeStylesheet = $theme->getStylesheet();
if ($themeStylesheet) {
$this->fileLocations[] = $themeStylesheet;