Skip to content
Permalink
Browse files

Update SWemosRelays.class.php

  • Loading branch information...
tarasfrompir committed Mar 26, 2019
1 parent a392db5 commit 495b65ebe30577a2d3d78bb8d1a092614b9720cd
Showing with 2 additions and 4 deletions.
  1. +2 −4 modules/SWemosRelays/SWemosRelays.class.php
@@ -49,13 +49,11 @@ function uninstall() {
// дожидаемся остановки цикла
sleep (2);
// удаляем файлы модуля-дополнения
if ($file = fopen(DIR_MODULES.'SWemosRelays/file_list.txt', "r")) {
DebMes ('file nayden');
if ($file = fopen(DIR_MODULES.'/SWemosRelays/file_list.txt', "r")) {
while(!feof($file)) {
$line = preg_replace('/\p{Cc}+/u', '', fgets($file));
DebMes ('line -'.$line);
@unlink(realpath(ROOT.$line));
DebMes (ROOT.$line);
@unlink(ROOT.$line);
}
fclose($file);
}

0 comments on commit 495b65e

Please sign in to comment.
You can’t perform that action at this time.