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.
In config_install_default_config I think we can replace three lines that extract config name from filename with a single line using http://us3.php.net/basename
Comment | File | Size | Author |
---|---|---|---|
#4 | cmi_base_name.patch | 674 bytes | marcingy |
cmi_install_config_basename.patch | 774 bytes | Rok Žlender | |
Comments
Comment #2
Rok Žlender CreditAttribution: Rok Žlender commentedcmi_install_config_basename.patch queued for re-testing.
Comment #4
marcingy CreditAttribution: marcingy commentedWe need a little bit more but this still tidies up the code a little bit.
Comment #5
ksenzeeDoes anyone know why the first patch didn't work? I would think it should have.
Comment #6
Rok Žlender CreditAttribution: Rok Žlender commentedYes. I removed a variable that is needed later on in that function.
Comment #7
sunThis has been fixed via #1470824: XML encoder can only handle a small subset of PHP arrays, so switch to YAML already.