From: Alexander Ebert Date: Tue, 26 Jul 2016 19:19:18 +0000 (+0200) Subject: Fixed error message for duplicate bbcode X-Git-Tag: 3.0.0_Beta_1~962 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a328f83ebff369e99b115df83571654a2135e87f;p=GitHub%2FWoltLab%2FWCF.git Fixed error message for duplicate bbcode --- diff --git a/wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php index e879cb04e8..a83098a921 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php @@ -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,