From e730016d4cdbb606bf379bae927c1a20cadc78eb Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 5 Dec 2012 21:36:20 +0100 Subject: [PATCH] Bunch of fixes + added language variables for page menu --- .../files/acp/templates/pageMenuItemList.tpl | 4 ++-- wcfsetup/install/files/js/WCF.js | 6 +++++ .../data/language/LanguageEditor.class.php | 6 ++--- .../system/template/TemplateEngine.class.php | 2 +- wcfsetup/install/lang/de.xml | 24 +++++++++++++++++++ 5 files changed, 35 insertions(+), 7 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/pageMenuItemList.tpl b/wcfsetup/install/files/acp/templates/pageMenuItemList.tpl index 2b472eef60..ad698b0fd6 100644 --- a/wcfsetup/install/files/acp/templates/pageMenuItemList.tpl +++ b/wcfsetup/install/files/acp/templates/pageMenuItemList.tpl @@ -42,7 +42,7 @@ - + {if $menuItem|count} @@ -54,7 +54,7 @@ - + diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 994b348687..dae84af16d 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -5028,8 +5028,11 @@ WCF.System.Confirmation = { this._callback = callback; this._parameters = parameters; + + var $render = true; if (this._dialog === null) { this._createDialog(); + $render = false; } this._dialog.find('#wcfSystemConfirmationContent').empty().hide(); @@ -5043,6 +5046,9 @@ WCF.System.Confirmation = { onShow: $.proxy(this._show, this), title: WCF.Language.get('wcf.global.confirmation.title') }); + if ($render) { + this._dialog.wcfDialog('render'); + } this._visible = true; }, diff --git a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php index 24e755ea5e..b82b6765f3 100644 --- a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php +++ b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php @@ -319,14 +319,12 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje * * @param string $languageID * @param string $category - * @param string $packageID */ - public static function deleteLanguageFiles($languageID = '.*', $category = '.*', $packageID = '.*') { + public static function deleteLanguageFiles($languageID = '.*', $category = '.*') { if ($category != '.*') $category = preg_quote($category, '~'); if ($languageID != '.*') $languageID = intval($languageID); - if ($packageID != '.*') $packageID = intval($packageID); - DirectoryUtil::getInstance(WCF_DIR.'language/')->removePattern(new Regex($packageID.'_'.$languageID.'_'.$category.'\.php$')); + DirectoryUtil::getInstance(WCF_DIR.'language/')->removePattern(new Regex($languageID.'_'.$category.'\.php$')); } /** diff --git a/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php b/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php index 07e6c1d5a7..1b644cbfad 100755 --- a/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php @@ -630,7 +630,7 @@ class TemplateEngine extends SingletonFactory { if (empty($compileDir)) $compileDir = WCF_DIR.'templates/compiled/'; // delete compiled templates - DirectoryUtil::getInstance($compileDir)->removePattern(new Regex('.*_.*_.*\.php$')); + DirectoryUtil::getInstance($compileDir)->removePattern(new Regex('.*_.*\.php$')); } /** diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 622e0c93d9..a69660497f 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -194,6 +194,9 @@ + + + @@ -394,6 +397,27 @@ + + + + + + + + + + + + + + + + + + + + + -- 2.20.1