diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2019-11-04 18:18:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-04 18:18:32 +0100 |
commit | 13960b69da2593dcfb0cbaef222ee8b9a33142c0 (patch) | |
tree | ca43ed0f4daa75e6b03b137b3ad650c8b721efa7 /lib/private/Route | |
parent | 64bfd4bbeb10e07bd2133a97c50175a156d43d61 (diff) | |
parent | 964dc0a95520efbf876e0113bfafc294f4f4b322 (diff) | |
download | nextcloud-server-13960b69da2593dcfb0cbaef222ee8b9a33142c0.tar.gz nextcloud-server-13960b69da2593dcfb0cbaef222ee8b9a33142c0.zip |
Merge pull request #17509 from nextcloud/fix/application-singleton
Fix Application instances created multiple times
Diffstat (limited to 'lib/private/Route')
-rw-r--r-- | lib/private/Route/Router.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Route/Router.php b/lib/private/Route/Router.php index 3d91a33cd8a..4c83f251012 100644 --- a/lib/private/Route/Router.php +++ b/lib/private/Route/Router.php @@ -371,7 +371,7 @@ class Router implements IRouter { $applicationClassName = $appNameSpace . '\\AppInfo\\Application'; if (class_exists($applicationClassName)) { - $application = new $applicationClassName(); + $application = \OC::$server->query($applicationClassName); } else { $application = new App($appName); } |