Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix maintenance mode
When the server is in maintenance mode, apps are not loaded.
That means apps/theming/ is not in the allowed paths. So we
need to check without autoloading, whether the class exists.
  • Loading branch information
nickvergessen committed Jul 19, 2016
commit 3024f20270c9c6f978a4464f4d85d372939b4e6a
2 changes: 1 addition & 1 deletion lib/private/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ public function __construct($webRoot, \OC\Config $config) {
return $factory->getManager();
});
$this->registerService('ThemingDefaults', function(Server $c) {
if($this->getConfig()->getSystemValue('installed', false) && $this->getAppManager()->isInstalled('theming')) {
if(class_exists('OCA\Theming\Template', false) && $this->getConfig()->getSystemValue('installed', false) && $this->getAppManager()->isInstalled('theming')) {
return new Template(
$this->getConfig(),
$this->getL10N('theming'),
Expand Down