Use correct theming when returning the defaults
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
cd82be929d
commit
7917ae7c23
|
@ -30,10 +30,10 @@
|
|||
|
||||
namespace OC\Core;
|
||||
|
||||
use OC\AppFramework\Utility\SimpleContainer;
|
||||
use OC\Core\Controller\OCJSController;
|
||||
use OC\Security\IdentityProof\Manager;
|
||||
use OC\Server;
|
||||
use OCP\AppFramework\App;
|
||||
use OCP\Files\IAppData;
|
||||
use OCP\Util;
|
||||
|
||||
/**
|
||||
|
@ -57,5 +57,25 @@ class Application extends App {
|
|||
\OC::$server->getCrypto()
|
||||
);
|
||||
});
|
||||
|
||||
$container->registerService(OCJSController::class, function () use ($container) {
|
||||
/** @var Server $server */
|
||||
$server = $container->getServer();
|
||||
return new OCJSController(
|
||||
$container->query('appName'),
|
||||
$server->getRequest(),
|
||||
$server->getL10N('core'),
|
||||
// This is required for the theming to overwrite the `OC_Defaults`, see
|
||||
// https://github.com/nextcloud/server/issues/3148
|
||||
$server->getThemingDefaults(),
|
||||
$server->getAppManager(),
|
||||
$server->getSession(),
|
||||
$server->getUserSession(),
|
||||
$server->getConfig(),
|
||||
$server->getGroupManager(),
|
||||
$server->getIniWrapper(),
|
||||
$server->getURLGenerator()
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue