| @@ 61-69 (lines=9) @@ | ||
| 58 | $selectedTheme = $environmentManager->getSelectedTheme(); |
|
| 59 | $selectedThemeResourcePath = $environmentManager->getResourcePath(); |
|
| 60 | ||
| 61 | if (!$configuration->has('themes/'.$selectedTheme) |
|
| 62 | || !$this->checkSelectedThemeFeatures( |
|
| 63 | $configuration->getConfig('themes/'.$selectedTheme), |
|
| 64 | $environmentManager |
|
| 65 | ) |
|
| 66 | ) { |
|
| 67 | $selectedTheme = EnvironmentManager::DEFAULT_THEME; |
|
| 68 | $selectedThemeResourcePath = EnvironmentManager::DEFAULT_THEME_RESOURCE_PATH; |
|
| 69 | } |
|
| 70 | ||
| 71 | $this->configuration = $configuration->getConfig('themes/'.$selectedTheme); |
|
| 72 | ||
| @@ 79-86 (lines=8) @@ | ||
| 76 | $selectedTheme = $environmentManager->getSelectedTheme(); |
|
| 77 | $selectedThemeResourcePath = $environmentManager->getResourcePath(); |
|
| 78 | ||
| 79 | if (!$configuration->has('themes/'.$selectedTheme) |
|
| 80 | || !$this->checkSelectedThemeFeatures( |
|
| 81 | $configuration->getConfig('themes/'.$selectedTheme), |
|
| 82 | $environmentManager |
|
| 83 | ) |
|
| 84 | ) { |
|
| 85 | $selectedThemeResourcePath = EnvironmentManager::DEFAULT_THEME_RESOURCE_PATH; |
|
| 86 | } |
|
| 87 | ||
| 88 | $this->defaultTemplateViewPath = $documentRoot.EnvironmentManager::DEFAULT_THEME_RESOURCE_PATH.'/view'; |
|
| 89 | $this->templateViewPath = $documentRoot.$selectedThemeResourcePath.'/view'; |
|