make files a const (as in /sites/default/files/*)

Created on 19 December 2012, over 12 years ago
Updated 15 May 2025, 2 days ago

Problem/Motivation

While working on #1848490: Import translations automatically during installation β†’ I noticed that 'files' is not a const.
Other directory names are like:

core/includes/bootstrap.inc:const CONFIG_ACTIVE_DIRECTORY = 'active';
core/includes/bootstrap.inc:const CONFIG_STAGING_DIRECTORY = 'staging';

Proposed resolution

Find the places in core where 'files' is assumed and replace it with a constant

Remaining tasks

  • find places that assume 'files'
  • come up with a name for the const
  • implement the changes to use a const, provide patch
  • review

User interface changes

None.

API changes

None.

πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

system.module

Created by

πŸ‡ΊπŸ‡ΈUnited States yesct

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024