Skip to content

Commit

Permalink
Update MicroweberComposerClient.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Mar 11, 2022
1 parent fc9137c commit 012af71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MicroweberPackages/Package/MicroweberComposerClient.php
Expand Up @@ -246,8 +246,10 @@ public function install($package)
$moduleName = str_replace('microweber-modules/', '', $moduleName);
$moduleName = str_replace('microweber-templates/', '', $moduleName);

$moduleLink = module_admin_url($moduleName);

$response = array();
$response['success'] = 'Success. You have installed: ' . $moduleName;
$response['success'] = 'Success. You have installed: ' . $moduleName . ' <br /> <a href="'.$moduleLink.'">Visit the module</a>';
$response['redirect_to'] = admin_url('view:modules/load_module:' . $moduleName);
$response['log'] = 'Done!';

Expand Down

0 comments on commit 012af71

Please sign in to comment.