Remove list of compatible API versions in PackagePage
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 6 Jul 2021 12:41:34 +0000 (14:41 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 7 Jul 2021 11:45:30 +0000 (13:45 +0200)
wcfsetup/install/files/acp/templates/package.tpl
wcfsetup/install/files/lib/acp/page/PackagePage.class.php

index be9dc6b9e0b36267a07af787c52862c24307d557..5508751c3dfb369057568340eaba8c6712672576 100644 (file)
                                        <dd><a href="https://pluginstore.woltlab.com/file/{$pluginStoreFileID}/" class="externalURL">{lang}wcf.acp.pluginStore.file.link{/lang}</a></dd>
                                </dl>
                        {/if}
-                       {if $package->packageID != 1}
-                               <dl>
-                                       <dt>{lang}wcf.acp.package.apiVersions{/lang}</dt>
-                                       <dd>
-                                               {if $compatibleVersions|empty}
-                                                       <small>{lang}wcf.acp.package.apiVersions.missing{/lang}</small>
-                                               {else}
-                                                       {implode from=$compatibleVersions item=version glue=', '}{$version}{/implode}
-                                               {/if}
-                                       </dd>
-                               </dl>
-                       {/if}
                        
                        {event name='propertyFields'}
                </div>
index 4d166dcdeb0bf6362ced963f62be1686a0e2f4d2..b1ae2faf2c637fc7dbc44c5a981f394f7916f7f3 100755 (executable)
@@ -23,8 +23,7 @@ class PackagePage extends AbstractPage
     public $activeMenuItem = 'wcf.acp.menu.link.package';
 
     /**
-     * list of compatible API versions
-     * @var int[]
+     * @deprecated 5.5 This array is always empty.
      */
     public $compatibleVersions = [];
 
@@ -84,20 +83,6 @@ class PackagePage extends AbstractPage
         $statement = WCF::getDB()->prepareStatement($sql);
         $statement->execute([$this->package->package]);
         $this->pluginStoreFileID = \intval($statement->fetchSingleColumn());
-
-        $sql = "SELECT      version
-                FROM        wcf" . WCF_N . "_package_compatibility
-                WHERE       packageID = ?
-                        AND version >= ?
-                ORDER BY    version";
-        $statement = WCF::getDB()->prepareStatement($sql);
-        $statement->execute([
-            $this->package->packageID,
-            WSC_API_VERSION,
-        ]);
-        while ($version = $statement->fetchColumn()) {
-            $this->compatibleVersions[] = $version;
-        }
     }
 
     /**