PackageDependencyHandler is now a singleton
authorAlexander Ebert <ebert@woltlab.com>
Mon, 5 Mar 2012 14:58:00 +0000 (15:58 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 5 Mar 2012 14:58:00 +0000 (15:58 +0100)
files/lib/acp/form/LanguageExportForm.class.php

index dc2845645b2a2f21a7f43f836a4ed24b22e1e86f..ef43af1a655b42d8505b87ce0da0535e57bdce79 100644 (file)
@@ -65,13 +65,6 @@ class LanguageExportForm extends ACPForm {
         */
        public $exportCustomValues = false;
        
-       /**
-        * maximum package name length
-        * TODO: still necessary?
-        * @var integer
-        */
-       public $packageNameLength = 0;
-       
        /**
         * @see wcf\page\IPage::readParameters()
         */
@@ -137,8 +130,7 @@ class LanguageExportForm extends ACPForm {
                        'languages' => LanguageFactory::getInstance()->getLanguages(),
                        'selectedPackages' => $this->selectedPackages,
                        'packages' => $this->packages,
-                       'selectAllPackages' => true,
-                       'packageNameLength' => $this->packageNameLength
+                       'selectAllPackages' => true
                ));
        }
        
@@ -159,11 +151,7 @@ class LanguageExportForm extends ACPForm {
                $statement = WCF::getDB()->prepareStatement($sql);
                $statement->execute(array($this->languageID));
                while ($row = $statement->fetchArray()) {
-                       $row['packageNameLength'] = StringUtil::length($row['packageName']);
                        $this->packages[] = new Package(null, $row);
-                       if ($row['packageNameLength'] > $this->packageNameLength) {
-                               $this->packageNameLength = $row['packageNameLength'];   
-                       }
                }
        }
 }