From: Ralf Ertzinger Date: Tue, 30 Apr 2013 16:33:31 +0000 (+0200) Subject: libvideosite: use helper functions for _init_config_items X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=commitdiff_plain;h=eb0fdb599af0e844cf3fe15773e3e2a3ecf0ff21 libvideosite: use helper functions for _init_config_items --- diff --git a/libvideosite.pm b/libvideosite.pm index 38aba57..ace6f81 100644 --- a/libvideosite.pm +++ b/libvideosite.pm @@ -193,8 +193,8 @@ sub _init_config_item { my $path = shift; my $value = shift; - unless($remote_api->{config_has}->($path)) { - $remote_api->{config_set}->($path, $value); + unless(_config_has($path)) { + _config_set($path, $value); } }