Fixes name of called method
authorMatthias Schmidt <gravatronics@live.com>
Sat, 6 Apr 2013 09:50:48 +0000 (11:50 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 6 Apr 2013 09:50:48 +0000 (11:50 +0200)
… and does some minor cleanup

wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php
wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php

index 09cc75e676172d0f383ac580080ca640c94aa424..532c23453ffb7df3e49e3c480dd4f9d3700e2cae 100644 (file)
@@ -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
index a241b34d2be3afdabfcff993c6eb10f3fa743804..7842e57574c7f5369bff08ed62eca6a218822aa6 100644 (file)
@@ -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;