]> BookStack Code Mirror - bookstack/blobdiff - app/Translation/FileLoader.php
Fixed local_secure_restricted preventing attachment uploads
[bookstack] / app / Translation / FileLoader.php
index 1ed7b06ccc593b35e6f24896c86063776c963190..de1124046183186ffeca53be74b1e3db3399293d 100644 (file)
@@ -24,7 +24,8 @@ class FileLoader extends BaseLoader
         }
 
         if (is_null($namespace) || $namespace === '*') {
-            $themeTranslations = $this->loadPath(theme_path('lang'), $locale, $group);
+            $themePath = theme_path('lang');
+            $themeTranslations = $themePath ? $this->loadPath($themePath, $locale, $group) : [];
             $originalTranslations = $this->loadPath($this->path, $locale, $group);
 
             return array_merge($originalTranslations, $themeTranslations);