From ba79873265bf673e3fc5bf4866650ff4f0ee927c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 17 Oct 2012 18:50:15 +0200 Subject: [PATCH] Fetching application through fetchObject() Thanks @Gravatronics --- .../files/lib/acp/action/InstallPackageAction.class.php | 3 +-- .../files/lib/acp/action/UninstallPackageAction.class.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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; -- 2.20.1