Skip to content

Commit deb63ba

Browse files
authored
Merge pull request #8032 from DiegoAndresCortes/themes-fix
[3.0] cast smf version as array for fatalLang
2 parents 434f69c + d551a93 commit deb63ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Actions/Admin/Themes.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,7 @@ protected function getThemeInfo($path)
18791879
// Check for compatibility with 2.1 or greater.
18801880
if (!$theme_info_xml->exists('theme-info/install')) {
18811881
$this->deltree($path);
1882-
ErrorHandler::fatalLang('package_get_error_theme_not_compatible', false, SMF_FULL_VERSION);
1882+
ErrorHandler::fatalLang('package_get_error_theme_not_compatible', false, [SMF_FULL_VERSION]);
18831883
}
18841884

18851885
// So, we have an install tag which is cool and stuff but we also need to check it and match your current SMF version...
@@ -1889,7 +1889,7 @@ protected function getThemeInfo($path)
18891889
// The theme isn't compatible with the current SMF version.
18901890
if (!$install_versions || !SubsPackage::matchPackageVersion($the_version, $install_versions)) {
18911891
$this->deltree($path);
1892-
ErrorHandler::fatalLang('package_get_error_theme_not_compatible', false, SMF_FULL_VERSION);
1892+
ErrorHandler::fatalLang('package_get_error_theme_not_compatible', false, [SMF_FULL_VERSION]);
18931893
}
18941894

18951895
$theme_info_xml = $theme_info_xml->to_array('theme-info[0]');

0 commit comments

Comments
 (0)