Skip to content

Commit

Permalink
Merge pull request #18 from kingthorin/i18n-fix
Browse files Browse the repository at this point in the history
fix: Missing Rule Details - Ensure i18n always initialized
  • Loading branch information
preetkaran20 authored May 2, 2022
2 parents 53fad36 + 08f758f commit 6084834
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ All notable changes to this add-on will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased
- Ensure i18n resources are always initialized.

## [1.1.0] - 2021-09-16
- Scan rule for uploading:
- HTACCESS file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ public class ExtensionFileUpload extends ExtensionAdaptor {

protected static final Logger LOGGER = LogManager.getLogger(ExtensionFileUpload.class);

static {
FileUploadI18n.init();
}

@Override
public String getAuthor() {
return "KSASAN [email protected]";
}

@Override
public void hook(ExtensionHook extensionHook) {
FileUploadI18n.init();
super.hook(extensionHook);
if (hasView()) {
extensionHook.getHookView().addOptionPanel(new FileUploadOptionsPanel());
Expand Down

0 comments on commit 6084834

Please sign in to comment.