diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 1beceac88e28707aaeaa730130a3730520d5f194..aaff525b1e35fb7057593ce9b1ad97573e56df85 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -56,7 +56,8 @@ class Application extends App implements IBootstrap { } public function register(IRegistrationContext $context): void { - Util::connectHook('OC_Filesystem', 'preSetup', $this, 'addStorageWrapper'); + // Util::connectHook('OC_Filesystem', 'preSetup', $this, 'addStorageWrapper'); + $context->registerEventListener(BeforeTemplateRenderedEvent::class, BeforeTemplateRenderedListener::class); $context->registerEventListener(BeforeUserDeletedEvent::class, BeforeUserDeletedListener::class); $context->registerEventListener(UserChangedEvent::class, UserChangedListener::class); diff --git a/lib/Filesystem/StorageWrapper.php b/lib/Filesystem/StorageWrapper.php index f35a55105be582163fcfdbfbe44eab87292767be..74d0011d4e9489821d1367e06996dc1d31b8b753 100644 --- a/lib/Filesystem/StorageWrapper.php +++ b/lib/Filesystem/StorageWrapper.php @@ -39,6 +39,7 @@ class StorageWrapper extends Wrapper implements IWriteStreamStorage { */ public function mkdir($path) { $this->checkFileAccess($path, true); + } /**