Major API overhaul
authorAlexander Ebert <ebert@woltlab.com>
Tue, 4 Dec 2012 17:54:53 +0000 (18:54 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 4 Dec 2012 17:54:53 +0000 (18:54 +0100)
files/lib/acp/form/LanguageExportForm.class.php
files/lib/acp/form/LanguageMultilingualismForm.class.php

index e6f79b288b5e7aa4441184d11c8ae097dbc80144..eb82b9440218faebd8bf7c711f48d8b1afb1d645 100644 (file)
@@ -144,15 +144,9 @@ class LanguageExportForm extends ACPForm {
         * Read available packages.
         */
        protected function readPackages() {
-               $sql = "SELECT          package.*,
+               $sql = "SELECT          *,
                                        CASE WHEN instanceName <> '' THEN instanceName ELSE packageName END AS packageName
-                       FROM            wcf".WCF_N."_package_dependency package_dependency
-                       LEFT JOIN       wcf".WCF_N."_language_to_package language_to_package
-                       ON              (language_to_package.languageID = ? AND language_to_package.packageID = package_dependency.dependency)
-                       LEFT JOIN       wcf".WCF_N."_package package
-                       ON              (package.packageID = package_dependency.dependency)
-                       WHERE           package_dependency.packageID = ".PACKAGE_ID."
-                                       AND language_to_package.languageID IS NOT NULL
+                       FROM            wcf".WCF_N."_package
                        ORDER BY        packageName";
                $statement = WCF::getDB()->prepareStatement($sql);
                $statement->execute(array($this->languageID));
index 59fb639ccd59d1bfb6617724889027f2cc9eadb6..c1aaaba2b13444128e9d9a6fa986bbf324287b3b 100644 (file)
@@ -90,7 +90,7 @@ class LanguageMultilingualismForm extends ACPForm {
                LanguageEditor::enableMultilingualism(($this->enable == 1 ? $this->languageIDs : array()));
                
                // clear cache
-               CacheHandler::getInstance()->clear(WCF_DIR.'cache/', 'cache.languages.php');
+               CacheHandler::getInstance()->clear(WCF_DIR.'cache/', 'cache.language.php');
                $this->saved();
                
                // show success message