From 7e236152719e7e79029ca2d42563998d7efa4abd Mon Sep 17 00:00:00 2001 From: Jeffrey Reichardt Date: Sat, 21 Apr 2012 18:51:00 +0300 Subject: [PATCH] Fixing PIP update. --- .../plugin/PIPPackageInstallationPlugin.class.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/package/plugin/PIPPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/PIPPackageInstallationPlugin.class.php index 9fff9c9273..37ddd41835 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/PIPPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/PIPPackageInstallationPlugin.class.php @@ -60,6 +60,18 @@ class PIPPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin * @see wcf\system\package\plugin\AbstractXMLPackageInstallationPlugin::findExistingItem() */ protected function findExistingItem(array $data) { - return null; + $sql = "SELECT * + FROM wcf".WCF_N."_".$this->tableName." + WHERE pluginName = ? + AND packageID = ?"; + $parameters = array( + $data['pluginName'], + $this->installation->getPackageID() + ); + + return array( + 'sql' => $sql, + 'parameters' => $parameters + ); } } -- 2.20.1