Logging is not available during the WCFSetup
authorAlexander Ebert <ebert@woltlab.com>
Wed, 19 Dec 2018 10:48:29 +0000 (11:48 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 19 Dec 2018 10:48:29 +0000 (11:48 +0100)
wcfsetup/install/files/lib/data/language/Language.class.php

index a0a8dd83147a2e93407d8a5a577d3ed972f21da9..ca496e80b16d86dbe88943adba68146de8ba2188 100644 (file)
@@ -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}'."),