Skip to content

Commit

Permalink
[BUGFIX] Check if "ext_emconf.php" exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Apen committed Mar 28, 2024
1 parent f4c84e7 commit a343850
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/Utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,11 @@ public static function getExtensionVersion($key): ?string

// need for the next include
$_EXTKEY = $key;

if (!is_file(ExtensionManagementUtility::extPath($key) . 'ext_emconf.php')) {
return null;
}

include(ExtensionManagementUtility::extPath($key) . 'ext_emconf.php');

return $EM_CONF[$key]['version'] ?? '?';
Expand Down

0 comments on commit a343850

Please sign in to comment.