Skip to content

Commit

Permalink
Merge pull request #971 from nextcloud/theming-fix-service-registration
Browse files Browse the repository at this point in the history
Fix loading of ThemingDefaults
  • Loading branch information
juliusknorr authored Aug 19, 2016
2 parents b1299bb + 162b153 commit cb7b44d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ public function __construct($webRoot, \OC\Config $config) {
});
$this->registerService('ThemingDefaults', function(Server $c) {
try {
$classExists = class_exists('OCA\Theming\Template');
$classExists = class_exists('OCA\Theming\ThemingDefaults');
} catch (\OCP\AutoloadNotAllowedException $e) {
// App disabled or in maintenance mode
$classExists = false;
Expand Down
1 change: 1 addition & 0 deletions tests/lib/ServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public function dataTestQuery() {
['TagManager', '\OCP\ITagManager'],
['TempManager', '\OC\TempManager'],
['TempManager', '\OCP\ITempManager'],
['ThemingDefaults', '\OCA\Theming\ThemingDefaults'],
['TrustedDomainHelper', '\OC\Security\TrustedDomainHelper'],

['SystemTagManager', '\OCP\SystemTag\ISystemTagManager'],
Expand Down

0 comments on commit cb7b44d

Please sign in to comment.