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.
Files that need converting are:
- core/modules/language/language.negotiation.inc
- core/modules/language/lib/Drupal/language/Tests/LanguageBrowserDetectionUnitTest.php
- core/modules/language/lib/Drupal/language/Tests/LanguageUILanguageNegotiationTest.php
- core/modules/language/lib/Drupal/language/Tests/LanguageUrlRewritingTest.php
- core/modules/language/tests/language_test/lib/Drupal/language_test/LanguageTestManager.php
Comment | File | Size | Author |
---|---|---|---|
#34 | 1999388-language-request.interdiff.29-34.txt | 216 bytes | penyaskito |
#34 | 1999388-language-request-34.patch | 6.08 KB | penyaskito |
#35 | 1999388-language-request.interdiff.34-35.txt | 1.03 KB | penyaskito |
#35 | 1999388-language-request-35.patch | 6.34 KB | penyaskito |
#29 | 1999388-language-request-29.patch | 6.06 KB | herom |
Comments
Comment #1
tyjamessmith CreditAttribution: tyjamessmith commentedtyjamessmith is working on this one
Comment #2
tyjamessmith CreditAttribution: tyjamessmith commentedHaving some problems, feel free to take over on this one.
Comment #3
chertzogLets give this a try.
Comment #4
kim.pepperRequest doesn't seem the right variable name to use. How about $acceptLang ?
Again. How about $queryLang?
$query isn't the right variable name to use. How about $sessionParam?
Comment #5
pwieck CreditAttribution: pwieck commentedMade changes as suggested by kim.pepper in comment #4 plus re-roll
Comment #7
pwieck CreditAttribution: pwieck commented#5: 1999388-5_replace-raw-variables-language.patch queued for re-testing.
Comment #9
pwieck CreditAttribution: pwieck commentedSince I seem to have done something wrong this is just a standard re-roll to work against without changes from #4
Comment #11
kim.pepperLooks like there was code from other issues in that last commit. This one is clean start from the current head.
Comment #13
kim.pepperRe-roll.
Comment #14
marcingy CreditAttribution: marcingy commentedLooks good assuming comes back green
Comment #16
star-szrLooks like this needs a reroll.
Comment #17
andypostRelated #1862202: Objectify the language system
Comment #18
kim.pepperRe-roll and use backslash for \Drupal as per #2053489: Standardize on \Drupal throughout core
Comment #20
andypostNo assign should happen when no $param in $_GET
$query = \Drupal::request()->query;
if ($query->has($param) && isset($languages[$langcode = $query->get($param)]))
query->has() ? check_plain() : NULL
This could not work!
Comment #21
no_angel CreditAttribution: no_angel commentedremoved "needs reroll" tag.
Comment #22
no_angel CreditAttribution: no_angel commentedremoved "needs reroll" tag.
Comment #23
no_angel CreditAttribution: no_angel commentedremoved "needs reroll" tag.
Comment #24
wouter.adem CreditAttribution: wouter.adem commentedComment #25
wouter.adem CreditAttribution: wouter.adem commentedCreated patch
Comment #26
wouter.adem CreditAttribution: wouter.adem commentedFix language request
Comment #27
kim.pepperThanks for this, however you are missing quite a few conversions:
Also there are a few issues with trailing whitespace in your patch. See https://drupal.org/coding-standards#indenting for more information.
White space
Whitespace
Whitespace
Whitespace
Comment #28
kim.pepperdouble post
Comment #29
herom CreditAttribution: herom commentedfixed most of #27. the remaining cases seemed to use symfony request already:
Comment #30
herom CreditAttribution: herom commentedtag cleanup.
Comment #31
dawehnerWe could just switch to String::checkPlain
Comment #32
penyaskito#29: 1999388-language-request-29.patch queued for re-testing.
Comment #34
penyaskitoRerolled #29.
Comment #35
penyaskitoSwitched to String::checkPlain according to #31.
Comment #36
dawehnerThank you!
Comment #37
webchickCommitted and pushed to 8.x. Thanks!