diff options
author | Joas Schilling <coding@schilljs.com> | 2023-01-23 21:02:07 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-01-24 07:25:28 +0100 |
commit | 578b67944f93ca8cc3d17b6b6b268b854d29f935 (patch) | |
tree | 6dd6338c6da63e174fc6a0f4434f91820a291527 | |
parent | c4c87ba5480cc28efcf793580f2bb6754aa1fa4c (diff) |
Don't break the maps app with talks files sidebar
Unsure why, but for now it might be easier to just disable it
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/Files/TemplateLoader.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Files/TemplateLoader.php b/lib/Files/TemplateLoader.php index efaf5384f..5bb20f75b 100644 --- a/lib/Files/TemplateLoader.php +++ b/lib/Files/TemplateLoader.php @@ -97,7 +97,9 @@ class TemplateLoader implements IEventListener { Util::addStyle(Application::APP_ID, 'At'); Util::addStyle(Application::APP_ID, 'icons'); - Util::addScript(Application::APP_ID, 'talk-files-sidebar'); + if (strpos(\OC::$server->getRequest()->getPathInfo(), '/apps/maps') !== 0) { + Util::addScript(Application::APP_ID, 'talk-files-sidebar'); + } if ($user instanceof IUser) { $this->publishInitialStateForUser($user, $this->rootFolder, $this->appManager); |