Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0] cast smf version as array for fatalLang #8032

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/Actions/Admin/Themes.php
Original file line number Diff line number Diff line change
Expand Up @@ -1879,7 +1879,7 @@ protected function getThemeInfo($path)
// Check for compatibility with 2.1 or greater.
if (!$theme_info_xml->exists('theme-info/install')) {
$this->deltree($path);
ErrorHandler::fatalLang('package_get_error_theme_not_compatible', false, SMF_FULL_VERSION);
ErrorHandler::fatalLang('package_get_error_theme_not_compatible', false, [SMF_FULL_VERSION]);
}

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

$theme_info_xml = $theme_info_xml->to_array('theme-info[0]');
Expand Down
Loading