From: Alexander Ebert Date: Mon, 5 Mar 2012 14:58:00 +0000 (+0100) Subject: PackageDependencyHandler is now a singleton X-Git-Tag: 2.0.0_Beta_1~616^2~34 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c508f068492d01042417b135c1d8a2f0bf6ec9a5;p=GitHub%2FWoltLab%2FWCF.git PackageDependencyHandler is now a singleton --- diff --git a/files/lib/acp/form/LanguageExportForm.class.php b/files/lib/acp/form/LanguageExportForm.class.php index dc2845645b..ef43af1a65 100644 --- a/files/lib/acp/form/LanguageExportForm.class.php +++ b/files/lib/acp/form/LanguageExportForm.class.php @@ -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']; - } } } }