Skip to content

Commit

Permalink
fix(composer): no longer try to symlink the mods on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Jul 13, 2023
1 parent ba28f76 commit 5319f0e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions engine/classes/Elgg/Composer/PostInstall.php
Expand Up @@ -25,10 +25,12 @@ public static function execute(Event $event) {

self::createProjectModFolder();

$managed_plugins = \Elgg\Database\Plugins::BUNDLED_PLUGINS;

foreach ($managed_plugins as $plugin) {
self::symlinkPluginFromRootToElgg($plugin);
if (stripos(PHP_OS, 'win') !== 0) {
// symlink the mods from Elgg /mod to the project /mod
$managed_plugins = \Elgg\Database\Plugins::BUNDLED_PLUGINS;
foreach ($managed_plugins as $plugin) {
self::symlinkPluginFromRootToElgg($plugin);
}
}
}

Expand Down

0 comments on commit 5319f0e

Please sign in to comment.