We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64de8ff + b5df791 commit c93d7f7Copy full SHA for c93d7f7
app/Logger/Plugins/PluginManager.php
@@ -136,11 +136,17 @@ protected function getDefaultPluginDirectory(): string
136
137
public function getCustomPluginDirectory(): string
138
{
139
- return implode(DIRECTORY_SEPARATOR, [
+ $path = implode(DIRECTORY_SEPARATOR, [
140
$_SERVER['HOME'] ?? $_SERVER['USERPROFILE'] ?? __DIR__,
141
'.expose',
142
'plugins'
143
]);
144
+
145
+ if (!file_exists($path)) {
146
+ @mkdir($path, 0755, true);
147
+ }
148
149
+ return $path;
150
}
151
152
public function modifyPluginConfiguration(array $pluginsToEnable): void
0 commit comments