onara
This commit is contained in:
@@ -1463,6 +1463,8 @@ process.on('uncaughtException', err => {
|
||||
default_font: cfg.websrv.default_font || "",
|
||||
site_description: cfg.websrv.description || "The webs dumpster",
|
||||
enable_nsfl: !!cfg.enable_nsfl,
|
||||
onara: !!(cfg.onara !== undefined ? cfg.onara : cfg.websrv?.onara),
|
||||
is_onara_item: false,
|
||||
enable_private_uploads: cfg.enable_private_uploads !== false,
|
||||
get enable_expiring_uploads() { return getEnableExpiringUploads(); },
|
||||
get enable_item_slugs() { return getEnableItemSlugs(); },
|
||||
@@ -1588,6 +1590,8 @@ process.on('uncaughtException', err => {
|
||||
globals.t = perRequestT;
|
||||
globals.lang = perRequestLang;
|
||||
globals.recaptcha_enabled = perRequestRecaptcha;
|
||||
globals.is_onara_item = !!(data && data.is_onara_item);
|
||||
globals.onara_item_html = (data && data.onara_item_html) || '';
|
||||
|
||||
// Resolve per-request infobox preference
|
||||
const activeReq = req || effectiveReq;
|
||||
|
||||
Reference in New Issue
Block a user