Permalink
Browse files

Merge pull request #259 from tarasfrompir/master

Обновление метода обновления методов и устройств
  • Loading branch information...
T-REX-XP committed Aug 29, 2018
2 parents c28e852 + 9005c5e commit 798f2bb31fe77eacfe68475c0dc6663551d2bc13
Showing with 7 additions and 0 deletions.
  1. +7 −0 modules/ssdp_finder/update_methods.inc.php
@@ -30,4 +30,11 @@
}
$current = file_get_contents('https://raw.githubusercontent.com/tarasfrompir/SSDPDrivers/master/modules/ssdp_finder/upnp/vendor/jalder/upnp/src/'.$device_type.'/Remote.php');
file_put_contents(ROOT.'/modules/ssdp_finder/upnp/vendor/jalder/upnp/src/'.$device_type.'/Remote.php', $current);
for ($i = 1; $i <= 10; $i++) {
$current = file_get_contents('https://raw.githubusercontent.com/tarasfrompir/SSDPDrivers/master/modules/ssdp_finder/upnp/vendor/jalder/upnp/src/'.$device_type.'/Remote'.$i.'.php');
if (!$current) {
break;
};
file_put_contents(ROOT.'/modules/ssdp_finder/upnp/vendor/jalder/upnp/src/'.$device_type.'/Remote'.$i.'.php', $current);
};
}

0 comments on commit 798f2bb

Please sign in to comment.