Roadmap 0.11, Fixes

FX.440 Packing a browser edition stopped with a PHP error from the theme switch in Settings

  • Fix
  • Built · in the lab

Packing any browser edition (devshell/pack.php --edition browser) failed with a PHP fatal error: core/components/app-settings.inc line 252 (UI.20, 2026-11-21) called env() for SHELL_THEME_TOGGLE, and the devshell renderer does not define env(). Found by perf-finish-11 round 2 (civil-detail lane) during the rule 56 packed-edition check. FIXED 2026-11-22: the call is guarded with function_exists('env'), the same way app-bar.inc reads the switch; a packed page without env() gets the Paper / Model labels. Tested: markupcraft, civilcraft and detailcraft browser editions pack (exit 0, license/secrets gate clean); tools/perf/main-imports.mjs on the packed CivilCraft and DetailCraft trees finds every split module (the 40 missing imports are the same in the a Discord member tree: addons.js render/, process/calc*.js). Not tried: a Studio build. In /lab (a Discord member) only.

Add a comment

Community comments

No comments yet

Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.

Sign in or create a free account to add a comment.