Fix the condition to rebuild the phrase cache
authorAlexander Ebert <ebert@woltlab.com>
Sat, 12 Nov 2022 11:09:55 +0000 (12:09 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 13 Nov 2022 14:28:21 +0000 (15:28 +0100)
wcfsetup/install/files/lib/system/language/preload/PhrasePreloader.class.php

index e0f905927a6048f0a794fb03bcf5c2a9edf25ce5..0789d927f0cb8cc044471902647c1719927e203b 100644 (file)
@@ -24,7 +24,7 @@ final class PhrasePreloader
      */
     public function getUrl(Language $language): string
     {
-        if ($this->needsRebuild($language)) {
+        if (!$this->needsRebuild($language)) {
             $this->rebuild($language);
         }