Require the registries this renderer's callers read

The AI tab included this without confform.php and referenced a constant from
it, which is a fatal, which is a blank page.
This commit is contained in:
Gmer4Lfe
2026-08-12 17:09:03 -04:00
parent 240876e710
commit 20c17648e6
+6
View File
@@ -58,6 +58,12 @@
// css/varaverk.css the vv-cf-* family these classes belong to // css/varaverk.css the vv-cf-* family these classes belong to
// ═══════════════════════════════════════════════════════════════════════════════════════════════ // ═══════════════════════════════════════════════════════════════════════════════════════════════
// Required, not assumed. This file emits the renderer for fields that confform.php parses, and
// the pages that include it also read its registries — VV_UI_SECTION_SURFACES among them. Left to
// whichever page happened to have pulled it in first, that works everywhere it was tested and
// fatals on the one page that included this without it, which is what took the AI tab blank.
require_once __DIR__ . '/confform.php';
function vv_conf_ui_assets(): void { function vv_conf_ui_assets(): void {
static $done = false; static $done = false;
if ($done) return; if ($done) return;