Make update_com.woltlab.wcf_5.3_packageServer.php compatible with WCF_N != 1
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 27 Jan 2021 15:31:11 +0000 (16:31 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 27 Jan 2021 15:31:30 +0000 (16:31 +0100)
wcfsetup/install/files/acp/update_com.woltlab.wcf_5.3_packageServer.php

index 9aed26891f0638afae4c5a387afef7d131b0ee7a..5a1cd9fea5582073d825877055638f23817ce865 100644 (file)
@@ -6,7 +6,7 @@ use wcf\system\WCF;
 // Do not use the `PackageUpdateServer` classes because we need to access
 // the raw server URL that is implicitly rewritten in 5.3.
 $sql = "SELECT  *
-       FROM    wcf1_package_update_server
+       FROM    wcf" . WCF_N . "_package_update_server
        WHERE   LOWER(serverURL) REGEXP 'https?://(store|update)\.woltlab\.com/.*'";
 $statement = WCF::getDB()->prepareStatement($sql);
 $statement->execute();