From: Matthias Schmidt Date: Sat, 6 Apr 2013 09:50:48 +0000 (+0200) Subject: Fixes name of called method X-Git-Tag: 2.0.0_Beta_1~390^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e3fc42e86f2b52e0a6df25aac3ef4a532bbc6a17;p=GitHub%2FWoltLab%2FWCF.git Fixes name of called method … and does some minor cleanup --- diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php index 09cc75e676..532c23453f 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php @@ -177,15 +177,15 @@ class PackageInstallationDispatcher { // reset stylesheets StyleHandler::resetStylesheets(); - // reset user storage - UserStorageHandler::getInstance()->resetAll(); + // clear user storage + UserStorageHandler::getInstance()->clear(); EventHandler::getInstance()->fireAction($this, 'postInstall'); - } + } if ($this->requireRestructureVersionTables) { $this->restructureVersionTables(); - } + } return $step; } @@ -984,7 +984,7 @@ class PackageInstallationDispatcher { $versionTableBaseColumns[] = array('name' => 'versionUsername', 'data' => array('type' => 'VARCHAR', 'length' => 255)); $versionTableBaseColumns[] = array('name' => 'versionTime', 'data' => array('type' => 'INT')); - foreach ($objectTypes as $objectTypeID => $objectType) { + foreach ($objectTypes as $objectType) { // get structure of base table $baseTableColumns = WCF::getDB()->getEditor()->getColumns($objectType::getDatabaseTableName()); // get structure of version table diff --git a/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php index a241b34d2b..7842e57574 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php @@ -87,15 +87,15 @@ class PackageUninstallationDispatcher extends PackageInstallationDispatcher { // rebuild application paths ApplicationHandler::rebuild(); - // reset user storage - UserStorageHandler::getInstance()->resetAll(); + // clear user storage + UserStorageHandler::getInstance()->clear(); EventHandler::getInstance()->fireAction($this, 'postUninstall'); } if ($this->requireRestructureVersionTables) { $this->restructureVersionTables(); - } + } // return next node return $node;