From 0c6b8bfebc1c47cc39ab88d5ed61799b48a43f0f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 19 Dec 2018 11:48:29 +0100 Subject: [PATCH] Logging is not available during the WCFSetup --- wcfsetup/install/files/lib/data/language/Language.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/language/Language.class.php b/wcfsetup/install/files/lib/data/language/Language.class.php index a0a8dd8314..ca496e80b1 100644 --- a/wcfsetup/install/files/lib/data/language/Language.class.php +++ b/wcfsetup/install/files/lib/data/language/Language.class.php @@ -104,7 +104,7 @@ class Language extends DatabaseObject { return ''; } - if (LOG_MISSING_LANGUAGE_ITEMS && preg_match('~^([a-zA-Z0-9-_]+\.)+[a-zA-Z0-9-_]+$~', $item)) { + if (defined('LOG_MISSING_LANGUAGE_ITEMS') && LOG_MISSING_LANGUAGE_ITEMS && preg_match('~^([a-zA-Z0-9-_]+\.)+[a-zA-Z0-9-_]+$~', $item)) { $logFile = WCF_DIR . 'log/missingLanguageItems.txt'; \wcf\functions\exception\logThrowable( new \Exception("Missing language item '{$item}'."), -- 2.20.1