Merge pull request #972 from nextcloud/stable10-backport-971
[stable10] Fix loading of ThemingDefaults
This commit is contained in:
commit
a12ea5197b
|
@ -643,7 +643,7 @@ class Server extends ServerContainer implements IServerContainer {
|
||||||
});
|
});
|
||||||
$this->registerService('ThemingDefaults', function(Server $c) {
|
$this->registerService('ThemingDefaults', function(Server $c) {
|
||||||
try {
|
try {
|
||||||
$classExists = class_exists('OCA\Theming\Template');
|
$classExists = class_exists('OCA\Theming\ThemingDefaults');
|
||||||
} catch (\OCP\AutoloadNotAllowedException $e) {
|
} catch (\OCP\AutoloadNotAllowedException $e) {
|
||||||
// App disabled or in maintenance mode
|
// App disabled or in maintenance mode
|
||||||
$classExists = false;
|
$classExists = false;
|
||||||
|
|
|
@ -158,6 +158,7 @@ class ServerTest extends \Test\TestCase {
|
||||||
['TagManager', '\OCP\ITagManager'],
|
['TagManager', '\OCP\ITagManager'],
|
||||||
['TempManager', '\OC\TempManager'],
|
['TempManager', '\OC\TempManager'],
|
||||||
['TempManager', '\OCP\ITempManager'],
|
['TempManager', '\OCP\ITempManager'],
|
||||||
|
['ThemingDefaults', '\OCA\Theming\ThemingDefaults'],
|
||||||
['TrustedDomainHelper', '\OC\Security\TrustedDomainHelper'],
|
['TrustedDomainHelper', '\OC\Security\TrustedDomainHelper'],
|
||||||
|
|
||||||
['SystemTagManager', '\OCP\SystemTag\ISystemTagManager'],
|
['SystemTagManager', '\OCP\SystemTag\ISystemTagManager'],
|
||||||
|
|
Loading…
Reference in New Issue