Skip to content

Commit 54a46dc

Browse files
committed
#162 Return version for Joomla 5
1 parent 51d2f3e commit 54a46dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Joomlatools/Console/Joomla/Util.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static function getJoomlaVersion($base)
6868
}
6969

7070
//start to provide support for Joomla 4 onwards
71-
if (defined( "$className::MAJOR_VERSION") && $version::MAJOR_VERSION == '4'){
71+
if (defined( "$className::MAJOR_VERSION") && in_array($version::MAJOR_VERSION, ['4', '5'])){
7272
return $version::MAJOR_VERSION . "." . $version::MINOR_VERSION . "." . $version::PATCH_VERSION . ($version::EXTRA_VERSION ? "." . $version::EXTRA_VERSION : '');
7373
}
7474

0 commit comments

Comments
 (0)