From: Alexander Ebert Date: Wed, 17 Oct 2012 16:50:15 +0000 (+0200) Subject: Fetching application through fetchObject() X-Git-Tag: 2.0.0_Beta_1~856 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ba79873265bf673e3fc5bf4866650ff4f0ee927c;p=GitHub%2FWoltLab%2FWCF.git Fetching application through fetchObject() Thanks @Gravatronics --- diff --git a/wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php b/wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php index 314251b25b..3782fbbb34 100755 --- a/wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php @@ -1,7 +1,6 @@ prepareStatement($sql); $statement->execute(array($packageID)); - $application = new Application(null, $statement->fetchArray()); + $application = $statement->fetchObject('wcf\data\application\Application'); // build redirect location $location = $application->getPageURL() . 'acp/index.php/PackageList/' . SID_ARG_1ST; diff --git a/wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php b/wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php index 266482f96f..a2fe3e9b47 100644 --- a/wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php @@ -1,7 +1,6 @@ prepareStatement($sql); $statement->execute(array($packageID)); - $application = new Application(null, $statement->fetchArray()); + $application = $statement->fetchObject('wcf\data\application\Application'); // build redirect location $location = $application->getPageURL() . 'acp/index.php/PackageList/' . SID_ARG_1ST;