Skip to content

Commit

Permalink
FIX recipe-plugin is not a recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Aug 15, 2023
1 parent 8ca3e2d commit c1d0d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion funcs_scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function rename_file_if_exists($oldFilename, $newFilename)
function module_is_recipe()
{
global $MODULE_DIR;
if (strpos($MODULE_DIR, '/recipe-') !== false
if ((strpos($MODULE_DIR, '/recipe-') !== false && strpos($MODULE_DIR, '/recipe-plugin') === false)
|| strpos($MODULE_DIR, '/silverstripe-installer') !== false
) {
return true;
Expand Down

0 comments on commit c1d0d5e

Please sign in to comment.