Fix siteinfo access when using feature_offline::only

This commit is contained in:
Cadence Ember 2023-03-09 23:06:35 +13:00
parent dfc9605cb6
commit abb4473020
Signed by: cadence
GPG key ID: BC1C2C61CF521B17

View file

@ -37,6 +37,9 @@
(define siteinfo-default (siteinfo^ "Unknown Wiki" "Main_Page" license-default))
(define head-data-default (head-data^ "skin-fandomdesktop" (get-static-url "breezewiki-favicon.svg")))
(when (config-true? 'feature_offline::only)
(void (get-slc)))
(define/memoize (siteinfo-fetch wikiname) #:hash hash
(cond
[(config-true? 'feature_offline::only)