Просмотр исходного кода

Merge branch 'master' of ssh://biuro.biall-net.pl:2222/plabudda/se

* 'master' of ssh://biuro.biall-net.pl:2222/plabudda/se:
  bug fix
a.binder 8 лет назад
Родитель
Сommit
b558f9dc78
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      SE/superedit-INSTALL_SES_PROCESY_A.php

+ 2 - 1
SE/superedit-INSTALL_SES_PROCESY_A.php

@@ -2371,12 +2371,13 @@ function encodePhpFiles($installer_dir, $domains = "", $domainEncodePhpFiles = [
     DEBUG_S(-3,'domainEncodePhpFiles',$domainEncodePhpFiles,__FILE__,__FUNCTION__,__LINE__);
 
     $freeEncodePhpFiles = array_filter($allPhpFiles, function ($phpFilePath) use ($domainEncodePhpFiles, $noEncodePhpFiles) {
+	if (in_array($phpFilePath, $domainEncodePhpFiles)) return false;
         preg_match('/^[[:digit:]]+\/(.*)$/', $phpFilePath, $matches);
         if (!$matches || empty($matches[1])) throw new Exception("Błąd ścieżki pliku {$phpFilePath}");
         $phpFilePath = $matches[1];
         if ('se-lib/Vendor/' === substr($phpFilePath, 0, strlen('se-lib/Vendor/'))) return false; // SKIP se-lib/Vendor/*
         if ('.ini.php' === substr($phpFilePath, -1 * strlen('.ini.php'))) return false; // SKIP *.ini.php
-        return (!in_array($phpFilePath, array_merge($domainEncodePhpFiles, $noEncodePhpFiles)));
+        return (!in_array($phpFilePath, $noEncodePhpFiles));
     });
     DEBUG_S(-3,'freeEncodePhpFiles',$freeEncodePhpFiles,__FILE__,__FUNCTION__,__LINE__);
 //    if (empty($freeEncodePhpFiles)) throw new Exception("No php files to encode");