Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Now that dependency injection has made it into core: #1497230: Use Dependency Injection to handle object definitions we should reduce the number of things we put into the $GLOBALS array, starting with things that touch the site's language .
On line 6284 of common.inc we have a $GLOBALS[$language_type]->langcode that should use the DI instead.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1539602_1_common_inc_di.patch | 495 bytes | cosmicdreams |
Comments
Comment #1
sunComment #2
cosmicdreams CreditAttribution: cosmicdreams commentedsmall patch to fix a single line of code.
Comment #3
cosmicdreams CreditAttribution: cosmicdreams commentedComment #4
RobLoachComment #5
catchYep. Committed/pushed to 8.x.