Skip to content

Commit c93d7f7

Browse files
committed
Merge branch 'master' of github.com:exposedev/expose
2 parents 64de8ff + b5df791 commit c93d7f7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/Logger/Plugins/PluginManager.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,17 @@ protected function getDefaultPluginDirectory(): string
136136

137137
public function getCustomPluginDirectory(): string
138138
{
139-
return implode(DIRECTORY_SEPARATOR, [
139+
$path = implode(DIRECTORY_SEPARATOR, [
140140
$_SERVER['HOME'] ?? $_SERVER['USERPROFILE'] ?? __DIR__,
141141
'.expose',
142142
'plugins'
143143
]);
144+
145+
if (!file_exists($path)) {
146+
@mkdir($path, 0755, true);
147+
}
148+
149+
return $path;
144150
}
145151

146152
public function modifyPluginConfiguration(array $pluginsToEnable): void

0 commit comments

Comments
 (0)