mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix to use foreign_defined sub instead
This commit is contained in:
@@ -58,7 +58,7 @@ foreach $o (@lang_order_list) {
|
||||
}
|
||||
|
||||
# Call any config pre-load function
|
||||
if (&foreign_func_exists($module, 'config_pre_load')) {
|
||||
if (&foreign_defined($module, 'config_pre_load')) {
|
||||
&foreign_call($module, "config_pre_load", \%info, \@info_order)
|
||||
&foreign_call($module, "config_pre_load", \%einfo)
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ if ($current_lang && $default_lang &&
|
||||
|
||||
# Call any config preload function
|
||||
if (&foreign_require($m) &&
|
||||
&foreign_func_exists($m, 'config_pre_load')) {
|
||||
&foreign_defined($m, 'config_pre_load')) {
|
||||
&foreign_call($m, "config_pre_load", \%info, \@info_order);
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ if (!$func) {
|
||||
|
||||
# Call any post-config save function
|
||||
if (&foreign_require($m) &&
|
||||
&foreign_func_exists($m, 'config_post_save')) {
|
||||
&foreign_defined($m, 'config_post_save')) {
|
||||
&foreign_call($m, "config_post_save", \%newconfig, \%oldconfig)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user