]> BookStack Code Mirror - bookstack/blobdiff - app/Util/LanguageManager.php
Fixed static analysis issues
[bookstack] / app / Util / LanguageManager.php
index ed68f647c400386a264b78dcaefa7150f2fee356..0cbf3f39705ac45c2f0b819751ce335536ba94e8 100644 (file)
@@ -130,7 +130,7 @@ class LanguageManager
         ]);
 
         if (!empty($locales)) {
-            setlocale(LC_TIME, ...$locales);
+            setlocale(LC_TIME, $locales[0], ...array_slice($locales, 1));
         }
     }
 }