Skip to content

[3.0] Remove the stylesheet the installer stopped using - #9664

Merged
jdarwood007 merged 1 commit into
SimpleMachines:release-3.0from
albertlast:3.0/remove-dead-install-css
Sep 8, 2026
Merged

jdarwood007 merged 1 commit into
SimpleMachines:release-3.0from
albertlast:3.0/remove-dead-install-css

Conversation

@albertlast

Copy link
Copy Markdown
Collaborator

Description

Themes/default/css/install.css — 182 lines — is loaded by nothing.

The installer and upgrader were rewritten for 3.0, and MaintenanceTemplate.php now asks
for variables.css, index.css, maintenance.css and, in a right-to-left language,
rtl.css. In 2.1 this file was pulled in by other/install.php and other/upgrade.php,
and those were its last references — they went with the rewrites in 572704635 and
99321ba41.

How I know nothing reaches it

Grepping for the name is not enough on its own, since a stylesheet can arrive under a
computed name, so both were checked:

  • the string install.css appears nowhere in the repository outside vendor/
  • the only place a stylesheet is loaded from a variable is Theme::loadTemplate(), at
    Sources/Theme.php:406 — and its two callers, in Moderation\Main and
    PackageManager, both ask for 'admin'

Then both tools were actually run: install.php and upgrade.php each return 200 and
request variables.css, index.css and maintenance.css. Nothing was logged.

Not to be confused with

maintenance.css is the file the installer and upgrader really use, and it is untouched
here.

Issues References (Fixes|Related|Closes)

Found while scoping the remaining work on #7933; unrelated to that PR's contents — the
snapshot it ports from keeps this file too.

🤖 Generated with Claude Code

Themes/default/css/install.css is loaded by nothing. The installer and the
upgrader were rewritten for 3.0, and MaintenanceTemplate.php asks for
variables.css, index.css, maintenance.css and, in a right-to-left language,
rtl.css. In 2.1 the file was pulled in by other/install.php and
other/upgrade.php, which is where its last references went.

Nothing else reaches it either. The name appears nowhere in the repository,
and it cannot arrive by a computed name: the only place a stylesheet is
loaded from a variable is Theme::loadTemplate(), whose two callers both ask
for 'admin'.

Confirmed by running both tools: install.php and upgrade.php each return 200
and request variables.css, index.css and maintenance.css, with nothing logged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: albertlast <mathiaspapealbert@hotmail.com>
@github-actions github-actions Bot added the Theme label Sep 8, 2026
@jdarwood007 jdarwood007 added this to the 3.0 Alpha 5 milestone Sep 8, 2026
@jdarwood007
jdarwood007 merged commit e48bd56 into SimpleMachines:release-3.0 Sep 8, 2026
9 checks passed
@albertlast albertlast mentioned this pull request Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants