Fixed a language cache issue
authorMarcel Werk <burntime@woltlab.com>
Fri, 4 Nov 2011 14:34:28 +0000 (15:34 +0100)
committerMarcel Werk <burntime@woltlab.com>
Fri, 4 Nov 2011 14:34:28 +0000 (15:34 +0100)
wcfsetup/install/files/lib/data/language/Language.class.php

index ae0ca373d904fb960e85f60e8404e2cffbe9f0dc..a1b0f02102663fe0fbb8a6200db52df1cd30b1a6 100644 (file)
@@ -180,4 +180,8 @@ class Language extends DatabaseObject {
                setlocale(LC_COLLATE, $this->get('wcf.global.locale.unix').'.UTF-8', $this->get('wcf.global.locale.unix'), $this->get('wcf.global.locale.win'));
                setlocale(LC_CTYPE, $this->get('wcf.global.locale.unix').'.UTF-8', $this->get('wcf.global.locale.unix'), $this->get('wcf.global.locale.win'));
        }
+       
+       public function __wakeup() {
+               $this->packageID = PACKAGE_ID;
+       }
 }