Skip to content
Snippets Groups Projects
Unverified Commit af0a18e8 authored by Cam Saul's avatar Cam Saul Committed by GitHub
Browse files

Fix busted Docker image (#12634)

parent 1375b499
No related branches found
No related tags found
No related merge requests found
......@@ -156,11 +156,13 @@
(atom
(fn []
(when-let [db-is-setup? (resolve 'metabase.db/db-is-setup?)]
(when (db-is-setup?)
(when-let [get-string (var-get (resolve 'metabase.models.setting/get-string))]
(let [f (fn [] (get-string :site-locale))]
(reset! system-locale-from-setting-fn f)
(f))))))))
(when (and (bound? db-is-setup?)
(db-is-setup?))
(when-let [get-string (resolve 'metabase.models.setting/get-string)]
(when (bound? get-string)
(let [f (fn [] (get-string :site-locale))]
(reset! system-locale-from-setting-fn f)
(f)))))))))
(defn system-locale-from-setting
"Fetch the value of the `site-locale` Setting."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment