Skip to content

Commit

Permalink
Merge pull request #7305 from jdarwood007/packageGetError
Browse files Browse the repository at this point in the history
Fix minor error with package uploading of invalid packages
  • Loading branch information
Sesquipedalian committed Feb 10, 2022
2 parents 5fdd153 + 4dcfb11 commit e4ba2d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/PackageGet.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ function PackageUpload()
@unlink($destination);
loadLanguage('Errors');
$txt[$context['package']] = str_replace('{MANAGETHEMEURL}', $scripturl . '?action=admin;area=theme;sa=admin;' . $context['session_var'] . '=' . $context['session_id'] . '#theme_install', $txt[$context['package']]);
fatal_lang_error('package_upload_error_broken', false, $txt[$context['package']]);
fatal_lang_error('package_upload_error_broken', false, array($txt[$context['package']]));
}
// Is it already uploaded, maybe?
elseif ($dir = @opendir($packagesdir))
Expand Down

0 comments on commit e4ba2d4

Please sign in to comment.