Skip to content

Commit

Permalink
Sector Nord AG: Fixed module check for calendar plugin. (#623)
Browse files Browse the repository at this point in the history
* Fixed module check for calendar plugin
* Fixed error output
  • Loading branch information
jsinagowitz authored Jan 15, 2025
1 parent ce785c4 commit 6cd687f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Kernel/System/Calendar/Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,13 @@ sub PluginFunction {
}

my $PluginObject = $Self->{Plugins}->{ $Param{PluginKey} }->{Object};
my $PluginModule = $Self->{Plugins}->{ $Param{PluginKey} }->{Module};
my $PluginFunction = $Param{PluginFunction};

if ( $MainObject->Require( $PluginObject, Silent => 1 ) ) {
if ( !$MainObject->Require( $PluginModule, Silent => 1 ) ) {
$LogObject->Log(
Priority => 'error',
Message => "Sorry, can't load $PluginObject!",
Message => "Sorry, can't load $PluginModule!",
);
return;
}
Expand Down

0 comments on commit 6cd687f

Please sign in to comment.