EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Upgrade script fixes
Taras Machyshyn47942ceae9b0
diff --git a/upgrades/9.0/scripts/BeforeUpgrade.php b/upgrades/9.0/scripts/BeforeUpgrade.phpindex 9d27268d97..0aeb45d1cb 100644--- a/upgrades/9.0/scripts/BeforeUpgrade.php+++ b/upgrades/9.0/scripts/BeforeUpgrade.php@@ -110,7 +110,7 @@ class BeforeUpgradeforeach ($phpFiles as $path) {$file = $path[0];- if ($this->isSkip($file, $skipPathRegexList)) {+ if ($this->toSkip($file, $skipPathRegexList)) {continue;}@@ -118,7 +118,7 @@ class BeforeUpgrade}}- private function isSkip(string $file, array $skipPathRegexList): bool+ private function toSkip(string $file, array $skipPathRegexList): bool{foreach ($skipPathRegexList as $pattern) {if (preg_match('/' . $pattern . '/', $file)) {