libvideosite: use helper functions for _init_config_items
authorRalf Ertzinger <ralf@skytale.net>
Tue, 30 Apr 2013 16:33:31 +0000 (18:33 +0200)
committerRalf Ertzinger <ralf@skytale.net>
Tue, 30 Apr 2013 16:33:31 +0000 (18:33 +0200)
libvideosite.pm

index 38aba57..ace6f81 100644 (file)
@@ -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);
     }
 }