Fixed error message for duplicate bbcode
authorAlexander Ebert <ebert@woltlab.com>
Tue, 26 Jul 2016 19:19:18 +0000 (21:19 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 26 Jul 2016 19:19:24 +0000 (21:19 +0200)
wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php

index e879cb04e8a1cc2bdb765684e53efd435aa7351a..a83098a9211b71abe45ffc71c0e7afcff57bcced 100644 (file)
@@ -126,12 +126,8 @@ class BBCodePackageInstallationPlugin extends AbstractXMLPackageInstallationPlug
        protected function findExistingItem(array $data) {
                $sql = "SELECT  *
                        FROM    wcf".WCF_N."_".$this->tableName."
-                       WHERE   bbcodeTag = ?
-                               AND packageID = ?";
-               $parameters = [
-                       $data['bbcodeTag'],
-                       $this->installation->getPackageID()
-               ];
+                       WHERE   bbcodeTag = ?";
+               $parameters = [$data['bbcodeTag']];
                
                return [
                        'sql' => $sql,