mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fix remaining #25359
As a wise man once said: "I like PRs that pass tests before merging" C. Wurst, Feb 9th 2021 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
2f26ff40e9
commit
25f9203a70
2 changed files with 6 additions and 9 deletions
|
|
@ -271,10 +271,7 @@ class RegistrationContext {
|
|||
}
|
||||
|
||||
public function registerTemplateProvider(string $appId, string $class): void {
|
||||
$this->templateProviders[] = [
|
||||
'appId' => $appId,
|
||||
'class' => $class,
|
||||
];
|
||||
$this->templateProviders[] = new ServiceRegistration($appId, $class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -709,12 +709,12 @@ class OC_App {
|
|||
|
||||
try {
|
||||
/** @var IAlternativeLogin $provider */
|
||||
$provider = \OC::$server->query($registration['class']);
|
||||
$provider = \OC::$server->query($registration->getService());
|
||||
} catch (QueryException $e) {
|
||||
\OC::$server->getLogger()->logException($e, [
|
||||
'message' => 'Alternative login option {option} can not be initialised.',
|
||||
'option' => $registration['class'],
|
||||
'app' => $registration['app'],
|
||||
'option' => $registration->getService(),
|
||||
'app' => $registration->getAppId(),
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
@ -729,8 +729,8 @@ class OC_App {
|
|||
} catch (Throwable $e) {
|
||||
\OC::$server->getLogger()->logException($e, [
|
||||
'message' => 'Alternative login option {option} had an error while loading.',
|
||||
'option' => $registration['class'],
|
||||
'app' => $registration['app'],
|
||||
'option' => $registration->getService(),
|
||||
'app' => $registration->getAppId(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue