From: Alexander Ebert Date: Tue, 17 Dec 2019 10:40:24 +0000 (+0100) Subject: Removed the API compatibility check from the devtools sync page X-Git-Tag: 5.2.0_RC_2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e0fb422ea2f10d2ecc8644ba8f74b3e9a63a63fb;p=GitHub%2FWoltLab%2FWCF.git Removed the API compatibility check from the devtools sync page --- diff --git a/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProject.class.php b/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProject.class.php index 1602bebecc..ec181bdb84 100644 --- a/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProject.class.php +++ b/wcfsetup/install/files/lib/data/devtools/project/DevtoolsProject.class.php @@ -138,27 +138,6 @@ class DevtoolsProject extends DatabaseObject { ]); } - if (!$this->isCore()) { - $compatibleVersions = $this->packageArchive->getCompatibleVersions(); - if (empty($compatibleVersions)) { - return WCF::getLanguage()->getDynamicVariable('wcf.acp.devtools.project.path.error.missingCompatibility'); - } - $isCompatible = $isOlderVersion = false; - foreach ($compatibleVersions as $version) { - if (WCF::isSupportedApiVersion($version)) { - $isCompatible = true; - break; - } - else if ($version < WSC_API_VERSION) { - $isOlderVersion = true; - } - } - - if (!$isCompatible) { - return WCF::getLanguage()->getDynamicVariable('wcf.acp.devtools.project.path.error.unsupportedCompatibility', ['isOlderVersion' => $isOlderVersion]); - } - } - return ''; } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index f637a0d7a9..b9e00cc371 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -406,12 +406,10 @@ - getPackageArchive()->getOpenRequirements()|empty}class="jsDevtoolsInstallPackage"{else}class="jsStaticDialog" data-dialog-id="openPackageRequirements"{/if}>{if LANGUAGE_USE_INFORMAL_VARIANT}Willst du{else}Wollen Sie{/if} das Paket installieren?]]> package.xml gefunden werden.]]> - package.xml passt nicht zur installierten Version, möglicherweise wurde eine falsches Verzeichnis ausgewählt.]]> name}]]> diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 0424c19cdc..440c57e031 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -382,12 +382,10 @@ - getPackageArchive()->getOpenRequirements()|empty}class="jsDevtoolsInstallPackage"{else}class="jsStaticDialog" data-dialog-id="openPackageRequirements"{/if}>Do you want to install the package?]]> package.xml.]]> - package.xml does not match the installed version, you may have selected the wrong path.]]> name}]]>